#ifndef ASH_PUBLIC_CPP_PROJECTOR_SPEECH_RECOGNITION_AVAILABILITY_H_
#define ASH_PUBLIC_CPP_PROJECTOR_SPEECH_RECOGNITION_AVAILABILITY_H_
#include "ash/public/cpp/ash_public_export.h"
namespace ash {
enum class ASH_PUBLIC_EXPORT OnDeviceRecognitionAvailability : int {
kSodaNotAvailable = 0,
kUserLanguageNotAvailable,
kSodaNotInstalled,
kSodaInstalling,
kSodaInstallationErrorUnspecified,
kSodaInstallationErrorNeedsReboot,
kAvailable,
};
enum class ASH_PUBLIC_EXPORT ServerBasedRecognitionAvailability : int {
kServerBasedRecognitionNotAvailable = 0,
kUserLanguageNotAvailable,
kAvailable,
};
struct ASH_PUBLIC_EXPORT SpeechRecognitionAvailability {
bool use_on_device = true;
OnDeviceRecognitionAvailability on_device_availability;
ServerBasedRecognitionAvailability server_based_availability;
bool IsAvailable() const;
};
}
#endif