Documentation
¶
Overview ¶
Package speech provides Go bindings for android.speech.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type AlternativeSpan
- func (m *AlternativeSpan) DescribeContents() (int32, error)
- func (m *AlternativeSpan) Equals(arg0 *jni.Object) (bool, error)
- func (m *AlternativeSpan) GetEndPosition() (int32, error)
- func (m *AlternativeSpan) GetStartPosition() (int32, error)
- func (m *AlternativeSpan) HashCode() (int32, error)
- func (m *AlternativeSpan) ToString() (string, error)
- func (m *AlternativeSpan) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type AlternativeSpans
- func (m *AlternativeSpans) DescribeContents() (int32, error)
- func (m *AlternativeSpans) Equals(arg0 *jni.Object) (bool, error)
- func (m *AlternativeSpans) HashCode() (int32, error)
- func (m *AlternativeSpans) ToString() (string, error)
- func (m *AlternativeSpans) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type ModelDownloadListener
- type RecognitionListener
- func (m *RecognitionListener) OnBeginningOfSpeech() error
- func (m *RecognitionListener) OnBufferReceived(arg0 *jni.Object) error
- func (m *RecognitionListener) OnEndOfSpeech() error
- func (m *RecognitionListener) OnError(arg0 int32) error
- func (m *RecognitionListener) OnEvent(arg0 int32, arg1 *jni.Object) error
- func (m *RecognitionListener) OnPartialResults(arg0 *jni.Object) error
- func (m *RecognitionListener) OnReadyForSpeech(arg0 *jni.Object) error
- func (m *RecognitionListener) OnResults(arg0 *jni.Object) error
- func (m *RecognitionListener) OnRmsChanged(arg0 float32) error
- type RecognitionPart
- func (m *RecognitionPart) DescribeContents() (int32, error)
- func (m *RecognitionPart) Equals(arg0 *jni.Object) (bool, error)
- func (m *RecognitionPart) GetConfidenceLevel() (int32, error)
- func (m *RecognitionPart) GetFormattedText() (string, error)
- func (m *RecognitionPart) GetRawText() (string, error)
- func (m *RecognitionPart) GetTimestampMillis() (int64, error)
- func (m *RecognitionPart) HashCode() (int32, error)
- func (m *RecognitionPart) ToString() (string, error)
- func (m *RecognitionPart) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type RecognitionPartBuilder
- func (m *RecognitionPartBuilder) Build() (*jni.Object, error)
- func (m *RecognitionPartBuilder) SetConfidenceLevel(arg0 int32) (*jni.Object, error)
- func (m *RecognitionPartBuilder) SetFormattedText(arg0 string) (*jni.Object, error)
- func (m *RecognitionPartBuilder) SetRawText(arg0 string) (*jni.Object, error)
- func (m *RecognitionPartBuilder) SetTimestampMillis(arg0 int64) (*jni.Object, error)
- type RecognitionService
- func (m *RecognitionService) CreateContext(arg0 *jni.Object) (*jni.Object, error)
- func (m *RecognitionService) GetMaxConcurrentSessionsCount() (int32, error)
- func (m *RecognitionService) OnBind(arg0 *jni.Object) (*jni.Object, error)
- func (m *RecognitionService) OnCheckRecognitionSupport2_1(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *RecognitionService) OnCheckRecognitionSupport3(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) error
- func (m *RecognitionService) OnDestroy() error
- func (m *RecognitionService) OnTriggerModelDownload1(arg0 *jni.Object) error
- func (m *RecognitionService) OnTriggerModelDownload2_1(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *RecognitionService) OnTriggerModelDownload3_2(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) error
- type RecognitionServiceCallback
- func (m *RecognitionServiceCallback) BeginningOfSpeech() error
- func (m *RecognitionServiceCallback) BufferReceived(arg0 *jni.Object) error
- func (m *RecognitionServiceCallback) EndOfSegmentedSession() error
- func (m *RecognitionServiceCallback) EndOfSpeech() error
- func (m *RecognitionServiceCallback) Error(arg0 int32) error
- func (m *RecognitionServiceCallback) GetCallingAttributionSource() (*jni.Object, error)
- func (m *RecognitionServiceCallback) GetCallingUid() (int32, error)
- func (m *RecognitionServiceCallback) LanguageDetection(arg0 *jni.Object) error
- func (m *RecognitionServiceCallback) PartialResults(arg0 *jni.Object) error
- func (m *RecognitionServiceCallback) ReadyForSpeech(arg0 *jni.Object) error
- func (m *RecognitionServiceCallback) Results(arg0 *jni.Object) error
- func (m *RecognitionServiceCallback) RmsChanged(arg0 float32) error
- func (m *RecognitionServiceCallback) SegmentResults(arg0 *jni.Object) error
- type RecognitionServiceSupportCallback
- type RecognitionSupport
- func (m *RecognitionSupport) DescribeContents() (int32, error)
- func (m *RecognitionSupport) Equals(arg0 *jni.Object) (bool, error)
- func (m *RecognitionSupport) HashCode() (int32, error)
- func (m *RecognitionSupport) ToString() (string, error)
- func (m *RecognitionSupport) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type RecognitionSupportBuilder
- func (m *RecognitionSupportBuilder) AddInstalledOnDeviceLanguage(arg0 string) (*jni.Object, error)
- func (m *RecognitionSupportBuilder) AddOnlineLanguage(arg0 string) (*jni.Object, error)
- func (m *RecognitionSupportBuilder) AddPendingOnDeviceLanguage(arg0 string) (*jni.Object, error)
- func (m *RecognitionSupportBuilder) AddSupportedOnDeviceLanguage(arg0 string) (*jni.Object, error)
- func (m *RecognitionSupportBuilder) Build() (*jni.Object, error)
- type RecognitionSupportCallback
- type Recognizer
- func (m *Recognizer) Cancel() error
- func (m *Recognizer) CheckRecognitionSupport(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) error
- func (m *Recognizer) CreateOnDeviceSpeechRecognizer(arg0 *jni.Object) (*jni.Object, error)
- func (m *Recognizer) CreateSpeechRecognizer1(arg0 *jni.Object) (*jni.Object, error)
- func (m *Recognizer) CreateSpeechRecognizer2_1(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)
- func (m *Recognizer) Destroy() error
- func (m *Recognizer) IsOnDeviceRecognitionAvailable(arg0 *jni.Object) (bool, error)
- func (m *Recognizer) IsRecognitionAvailable(arg0 *jni.Object) (bool, error)
- func (m *Recognizer) SetRecognitionListener(arg0 *jni.Object) error
- func (m *Recognizer) StartListening(arg0 *jni.Object) error
- func (m *Recognizer) StopListening() error
- func (m *Recognizer) TriggerModelDownload1(arg0 *jni.Object) error
- func (m *Recognizer) TriggerModelDownload3_1(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) error
- type RecognizerIntent
- type TextToSpeech
- func (m *TextToSpeech) AddEarcon2(arg0 string, arg1 *jni.Object) (int32, error)
- func (m *TextToSpeech) AddEarcon2_1(arg0 string, arg1 *jni.Object) (int32, error)
- func (m *TextToSpeech) AddEarcon2_2(arg0 string, arg1 string) (int32, error)
- func (m *TextToSpeech) AddEarcon3_3(arg0 string, arg1 string, arg2 int32) (int32, error)
- func (m *TextToSpeech) AddSpeech2(arg0 string, arg1 *jni.Object) (int32, error)
- func (m *TextToSpeech) AddSpeech2_1(arg0 string, arg1 *jni.Object) (int32, error)
- func (m *TextToSpeech) AddSpeech2_3(arg0 string, arg1 string) (int32, error)
- func (m *TextToSpeech) AddSpeech3_2(arg0 string, arg1 string, arg2 int32) (int32, error)
- func (m *TextToSpeech) AddSpeech3_4(arg0 string, arg1 string, arg2 int32) (int32, error)
- func (m *TextToSpeech) AreDefaultsEnforced() (bool, error)
- func (m *TextToSpeech) Close()
- func (m *TextToSpeech) GetDefaultEngine() (string, error)
- func (m *TextToSpeech) GetDefaultLanguage() (*jni.Object, error)
- func (m *TextToSpeech) GetDefaultVoice() (*jni.Object, error)
- func (m *TextToSpeech) GetLanguage() (*jni.Object, error)
- func (m *TextToSpeech) GetMaxSpeechInputLength() (int32, error)
- func (m *TextToSpeech) GetVoice() (*jni.Object, error)
- func (m *TextToSpeech) IsLanguageAvailable(arg0 *jni.Object) (int32, error)
- func (m *TextToSpeech) IsSpeaking() (bool, error)
- func (m *TextToSpeech) PlayEarcon(arg0 string, arg1 int32, arg2 *jni.Object, arg3 string) (int32, error)
- func (m *TextToSpeech) PlaySilentUtterance(arg0 int64, arg1 int32, arg2 string) (int32, error)
- func (m *TextToSpeech) SetAudioAttributes(arg0 *jni.Object) (int32, error)
- func (m *TextToSpeech) SetEngineByPackageName(arg0 string) (int32, error)
- func (m *TextToSpeech) SetLanguage(arg0 *jni.Object) (int32, error)
- func (m *TextToSpeech) SetOnUtteranceCompletedListener(arg0 *jni.Object) (int32, error)
- func (m *TextToSpeech) SetOnUtteranceProgressListener(arg0 *jni.Object) (int32, error)
- func (m *TextToSpeech) SetPitch(arg0 float32) (int32, error)
- func (m *TextToSpeech) SetSpeechRate(arg0 float32) (int32, error)
- func (m *TextToSpeech) SetVoice(arg0 *jni.Object) (int32, error)
- func (m *TextToSpeech) Shutdown() error
- func (m *TextToSpeech) Speak(arg0 string, arg1 int32, arg2 *jni.Object, arg3 string) (int32, error)
- func (m *TextToSpeech) Stop() (int32, error)
- func (m *TextToSpeech) SynthesizeToFile4(arg0 string, arg1 *jni.Object, arg2 *jni.Object, arg3 string) (int32, error)
- func (m *TextToSpeech) SynthesizeToFile4_1(arg0 string, arg1 *jni.Object, arg2 *jni.Object, arg3 string) (int32, error)
- type TextToSpeechEngineInfo
- type TextToSpeechOnInitListener
- type TextToSpeechOnUtteranceCompletedListener
Constants ¶
const ( ConfidenceScores = consts.ConfidenceScores DetectedLanguage = consts.DetectedLanguage LanguageDetectionConfidenceLevel = consts.LanguageDetectionConfidenceLevel LanguageSwitchResult = consts.LanguageSwitchResult RecognitionParts = consts.RecognitionParts ResultsAlternatives = consts.ResultsAlternatives ResultsRecognition = consts.ResultsRecognition TopLocaleAlternatives = consts.TopLocaleAlternatives ActionGetLanguageDetails = consts.ActionGetLanguageDetails ActionRecognizeSpeech = consts.ActionRecognizeSpeech ActionVoiceSearchHandsFree = consts.ActionVoiceSearchHandsFree ActionWebSearch = consts.ActionWebSearch DetailsMetaData = consts.DetailsMetaData ExtraAudioInjectSource = consts.ExtraAudioInjectSource ExtraAudioSource = consts.ExtraAudioSource ExtraAudioSourceChannelCount = consts.ExtraAudioSourceChannelCount ExtraAudioSourceEncoding = consts.ExtraAudioSourceEncoding ExtraAudioSourceSamplingRate = consts.ExtraAudioSourceSamplingRate ExtraBiasingStrings = consts.ExtraBiasingStrings ExtraCallingPackage = consts.ExtraCallingPackage ExtraConfidenceScores = consts.ExtraConfidenceScores ExtraEnableBiasingDeviceContext = consts.ExtraEnableBiasingDeviceContext ExtraEnableFormatting = consts.ExtraEnableFormatting ExtraEnableLanguageDetection = consts.ExtraEnableLanguageDetection ExtraEnableLanguageSwitch = consts.ExtraEnableLanguageSwitch ExtraHidePartialTrailingPunctuation = consts.ExtraHidePartialTrailingPunctuation ExtraLanguage = consts.ExtraLanguage ExtraLanguageDetectionAllowedLanguages = consts.ExtraLanguageDetectionAllowedLanguages ExtraLanguageModel = consts.ExtraLanguageModel ExtraLanguagePreference = consts.ExtraLanguagePreference ExtraLanguageSwitchAllowedLanguages = consts.ExtraLanguageSwitchAllowedLanguages ExtraLanguageSwitchInitialActiveDurationTimeMillis = consts.ExtraLanguageSwitchInitialActiveDurationTimeMillis ExtraLanguageSwitchMaxSwitches = consts.ExtraLanguageSwitchMaxSwitches ExtraMaskOffensiveWords = consts.ExtraMaskOffensiveWords ExtraMaxResults = consts.ExtraMaxResults ExtraOnlyReturnLanguagePreference = consts.ExtraOnlyReturnLanguagePreference ExtraOrigin = consts.ExtraOrigin ExtraPartialResults = consts.ExtraPartialResults ExtraPreferOffline = consts.ExtraPreferOffline ExtraPrompt = consts.ExtraPrompt ExtraRequestWordConfidence = consts.ExtraRequestWordConfidence ExtraRequestWordTiming = consts.ExtraRequestWordTiming ExtraResults = consts.ExtraResults ExtraResultsPendingintent = consts.ExtraResultsPendingintent ExtraResultsPendingintentBundle = consts.ExtraResultsPendingintentBundle ExtraSecure = consts.ExtraSecure ExtraSegmentedSession = consts.ExtraSegmentedSession ExtraSpeechInputCompleteSilenceLengthMillis = consts.ExtraSpeechInputCompleteSilenceLengthMillis ExtraSpeechInputMinimumLengthMillis = consts.ExtraSpeechInputMinimumLengthMillis ExtraSpeechInputPossiblyCompleteSilenceLengthMillis = consts.ExtraSpeechInputPossiblyCompleteSilenceLengthMillis ExtraSupportedLanguages = consts.ExtraSupportedLanguages ExtraWebSearchOnly = consts.ExtraWebSearchOnly FormattingOptimizeLatency = consts.FormattingOptimizeLatency FormattingOptimizeQuality = consts.FormattingOptimizeQuality LanguageModelFreeForm = consts.LanguageModelFreeForm LanguageModelWebSearch = consts.LanguageModelWebSearch LanguageSwitchBalanced = consts.LanguageSwitchBalanced LanguageSwitchHighPrecision = consts.LanguageSwitchHighPrecision LanguageSwitchQuickResponse = consts.LanguageSwitchQuickResponse ActionVoiceSearchResults = consts.ActionVoiceSearchResults ExtraVoiceSearchResultHtml = consts.ExtraVoiceSearchResultHtml ExtraVoiceSearchResultHtmlBaseUrls = consts.ExtraVoiceSearchResultHtmlBaseUrls ExtraVoiceSearchResultHttpHeaders = consts.ExtraVoiceSearchResultHttpHeaders ExtraVoiceSearchResultStrings = consts.ExtraVoiceSearchResultStrings ExtraVoiceSearchResultUrls = consts.ExtraVoiceSearchResultUrls UriSchemeInline = consts.UriSchemeInline ActionTtsQueueProcessingCompleted = consts.ActionTtsQueueProcessingCompleted ActionCheckTtsData = consts.ActionCheckTtsData ActionGetSampleText = consts.ActionGetSampleText ActionInstallTtsData = consts.ActionInstallTtsData ActionTtsDataInstalled = consts.ActionTtsDataInstalled ExtraAvailableVoices = consts.ExtraAvailableVoices ExtraCheckVoiceDataFor = consts.ExtraCheckVoiceDataFor ExtraSampleText = consts.ExtraSampleText ExtraTtsDataInstalled = consts.ExtraTtsDataInstalled ExtraVoiceDataFiles = consts.ExtraVoiceDataFiles ExtraVoiceDataFilesInfo = consts.ExtraVoiceDataFilesInfo ExtraVoiceDataRootDirectory = consts.ExtraVoiceDataRootDirectory IntentActionTtsService = consts.IntentActionTtsService KeyFeatureEmbeddedSynthesis = consts.KeyFeatureEmbeddedSynthesis KeyFeatureNetworkRetriesCount = consts.KeyFeatureNetworkRetriesCount KeyFeatureNetworkSynthesis = consts.KeyFeatureNetworkSynthesis KeyFeatureNetworkTimeoutMs = consts.KeyFeatureNetworkTimeoutMs KeyFeatureNotInstalled = consts.KeyFeatureNotInstalled KeyParamPan = consts.KeyParamPan KeyParamSessionId = consts.KeyParamSessionId KeyParamStream = consts.KeyParamStream KeyParamUtteranceId = consts.KeyParamUtteranceId KeyParamVolume = consts.KeyParamVolume ServiceMetaData = consts.ServiceMetaData ServiceInterface = consts.ServiceInterface )
const ( ErrorAudio = consts.ErrorAudio ErrorCannotCheckSupport = consts.ErrorCannotCheckSupport ErrorCannotListenToDownloadEvents = consts.ErrorCannotListenToDownloadEvents ErrorClient = consts.ErrorClient ErrorInsufficientPermissions = consts.ErrorInsufficientPermissions ErrorLanguageNotSupported = consts.ErrorLanguageNotSupported ErrorNetwork = consts.ErrorNetwork ErrorNetworkTimeout = consts.ErrorNetworkTimeout ErrorNoMatch = consts.ErrorNoMatch ErrorRecognizerBusy = consts.ErrorRecognizerBusy ErrorServer = consts.ErrorServer ErrorServerDisconnected = consts.ErrorServerDisconnected ErrorSpeechTimeout = consts.ErrorSpeechTimeout ErrorTooManyRequests = consts.ErrorTooManyRequests LanguageDetectionConfidenceLevelConfident = consts.LanguageDetectionConfidenceLevelConfident LanguageDetectionConfidenceLevelHighlyConfident = consts.LanguageDetectionConfidenceLevelHighlyConfident LanguageDetectionConfidenceLevelNotConfident = consts.LanguageDetectionConfidenceLevelNotConfident LanguageDetectionConfidenceLevelUnknown = consts.LanguageDetectionConfidenceLevelUnknown LanguageSwitchResultFailed = consts.LanguageSwitchResultFailed LanguageSwitchResultNotAttempted = consts.LanguageSwitchResultNotAttempted LanguageSwitchResultSkippedNoModel = consts.LanguageSwitchResultSkippedNoModel LanguageSwitchResultSucceeded = consts.LanguageSwitchResultSucceeded ConfidenceLevelHigh = consts.ConfidenceLevelHigh ConfidenceLevelLow = consts.ConfidenceLevelLow ConfidenceLevelMedium = consts.ConfidenceLevelMedium ConfidenceLevelMediumHigh = consts.ConfidenceLevelMediumHigh ConfidenceLevelMediumLow = consts.ConfidenceLevelMediumLow ConfidenceLevelUnknown = consts.ConfidenceLevelUnknown Creator = consts.Creator ResultAudioError = consts.ResultAudioError ResultClientError = consts.ResultClientError ResultNetworkError = consts.ResultNetworkError ResultNoMatch = consts.ResultNoMatch ResultServerError = consts.ResultServerError Error = consts.Error ErrorInvalidRequest = consts.ErrorInvalidRequest ErrorNotInstalledYet = consts.ErrorNotInstalledYet ErrorOutput = consts.ErrorOutput ErrorService = consts.ErrorService ErrorSynthesis = consts.ErrorSynthesis LangAvailable = consts.LangAvailable LangCountryAvailable = consts.LangCountryAvailable LangCountryVarAvailable = consts.LangCountryVarAvailable LangMissingData = consts.LangMissingData LangNotSupported = consts.LangNotSupported QueueAdd = consts.QueueAdd QueueFlush = consts.QueueFlush Stopped = consts.Stopped Success = consts.Success CheckVoiceDataBadData = consts.CheckVoiceDataBadData CheckVoiceDataFail = consts.CheckVoiceDataFail CheckVoiceDataMissingData = consts.CheckVoiceDataMissingData CheckVoiceDataMissingVolume = consts.CheckVoiceDataMissingVolume CheckVoiceDataPass = consts.CheckVoiceDataPass DefaultStream = consts.DefaultStream )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlternativeSpan ¶ added in v0.0.7
AlternativeSpan wraps android.speech.AlternativeSpan.
func NewAlternativeSpan ¶ added in v0.0.7
func NewAlternativeSpan(vm *jni.VM, arg0 int32, arg1 int32, arg2 *jni.Object) (*AlternativeSpan, error)
NewAlternativeSpan creates a new android.speech.AlternativeSpan instance.
func (*AlternativeSpan) DescribeContents ¶ added in v0.0.7
func (m *AlternativeSpan) DescribeContents() (int32, error)
DescribeContents calls android.speech.AlternativeSpan.describeContents.
func (*AlternativeSpan) Equals ¶ added in v0.0.7
func (m *AlternativeSpan) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.speech.AlternativeSpan.equals.
func (*AlternativeSpan) GetEndPosition ¶ added in v0.0.7
func (m *AlternativeSpan) GetEndPosition() (int32, error)
GetEndPosition calls android.speech.AlternativeSpan.getEndPosition.
func (*AlternativeSpan) GetStartPosition ¶ added in v0.0.7
func (m *AlternativeSpan) GetStartPosition() (int32, error)
GetStartPosition calls android.speech.AlternativeSpan.getStartPosition.
func (*AlternativeSpan) HashCode ¶ added in v0.0.7
func (m *AlternativeSpan) HashCode() (int32, error)
HashCode calls android.speech.AlternativeSpan.hashCode.
func (*AlternativeSpan) ToString ¶ added in v0.0.7
func (m *AlternativeSpan) ToString() (string, error)
ToString calls android.speech.AlternativeSpan.toString.
func (*AlternativeSpan) WriteToParcel ¶ added in v0.0.7
func (m *AlternativeSpan) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.speech.AlternativeSpan.writeToParcel.
type AlternativeSpans ¶ added in v0.0.7
AlternativeSpans wraps android.speech.AlternativeSpans.
func NewAlternativeSpans ¶ added in v0.0.7
NewAlternativeSpans creates a new android.speech.AlternativeSpans instance.
func (*AlternativeSpans) DescribeContents ¶ added in v0.0.7
func (m *AlternativeSpans) DescribeContents() (int32, error)
DescribeContents calls android.speech.AlternativeSpans.describeContents.
func (*AlternativeSpans) Equals ¶ added in v0.0.7
func (m *AlternativeSpans) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.speech.AlternativeSpans.equals.
func (*AlternativeSpans) HashCode ¶ added in v0.0.7
func (m *AlternativeSpans) HashCode() (int32, error)
HashCode calls android.speech.AlternativeSpans.hashCode.
func (*AlternativeSpans) ToString ¶ added in v0.0.7
func (m *AlternativeSpans) ToString() (string, error)
ToString calls android.speech.AlternativeSpans.toString.
func (*AlternativeSpans) WriteToParcel ¶ added in v0.0.7
func (m *AlternativeSpans) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.speech.AlternativeSpans.writeToParcel.
type ModelDownloadListener ¶ added in v0.0.7
ModelDownloadListener wraps android.speech.ModelDownloadListener.
func (*ModelDownloadListener) OnError ¶ added in v0.0.7
func (m *ModelDownloadListener) OnError(arg0 int32) error
OnError calls android.speech.ModelDownloadListener.onError.
func (*ModelDownloadListener) OnProgress ¶ added in v0.0.7
func (m *ModelDownloadListener) OnProgress(arg0 int32) error
OnProgress calls android.speech.ModelDownloadListener.onProgress.
func (*ModelDownloadListener) OnScheduled ¶ added in v0.0.7
func (m *ModelDownloadListener) OnScheduled() error
OnScheduled calls android.speech.ModelDownloadListener.onScheduled.
func (*ModelDownloadListener) OnSuccess ¶ added in v0.0.7
func (m *ModelDownloadListener) OnSuccess() error
OnSuccess calls android.speech.ModelDownloadListener.onSuccess.
type RecognitionListener ¶ added in v0.0.7
RecognitionListener wraps android.speech.RecognitionListener.
func (*RecognitionListener) OnBeginningOfSpeech ¶ added in v0.0.7
func (m *RecognitionListener) OnBeginningOfSpeech() error
OnBeginningOfSpeech calls android.speech.RecognitionListener.onBeginningOfSpeech.
func (*RecognitionListener) OnBufferReceived ¶ added in v0.0.7
func (m *RecognitionListener) OnBufferReceived(arg0 *jni.Object) error
OnBufferReceived calls android.speech.RecognitionListener.onBufferReceived.
func (*RecognitionListener) OnEndOfSpeech ¶ added in v0.0.7
func (m *RecognitionListener) OnEndOfSpeech() error
OnEndOfSpeech calls android.speech.RecognitionListener.onEndOfSpeech.
func (*RecognitionListener) OnError ¶ added in v0.0.7
func (m *RecognitionListener) OnError(arg0 int32) error
OnError calls android.speech.RecognitionListener.onError.
func (*RecognitionListener) OnEvent ¶ added in v0.0.7
func (m *RecognitionListener) OnEvent(arg0 int32, arg1 *jni.Object) error
OnEvent calls android.speech.RecognitionListener.onEvent.
func (*RecognitionListener) OnPartialResults ¶ added in v0.0.7
func (m *RecognitionListener) OnPartialResults(arg0 *jni.Object) error
OnPartialResults calls android.speech.RecognitionListener.onPartialResults.
func (*RecognitionListener) OnReadyForSpeech ¶ added in v0.0.7
func (m *RecognitionListener) OnReadyForSpeech(arg0 *jni.Object) error
OnReadyForSpeech calls android.speech.RecognitionListener.onReadyForSpeech.
func (*RecognitionListener) OnResults ¶ added in v0.0.7
func (m *RecognitionListener) OnResults(arg0 *jni.Object) error
OnResults calls android.speech.RecognitionListener.onResults.
func (*RecognitionListener) OnRmsChanged ¶ added in v0.0.7
func (m *RecognitionListener) OnRmsChanged(arg0 float32) error
OnRmsChanged calls android.speech.RecognitionListener.onRmsChanged.
type RecognitionPart ¶ added in v0.0.7
RecognitionPart wraps android.speech.RecognitionPart.
func (*RecognitionPart) DescribeContents ¶ added in v0.0.7
func (m *RecognitionPart) DescribeContents() (int32, error)
DescribeContents calls android.speech.RecognitionPart.describeContents.
func (*RecognitionPart) Equals ¶ added in v0.0.7
func (m *RecognitionPart) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.speech.RecognitionPart.equals.
func (*RecognitionPart) GetConfidenceLevel ¶ added in v0.0.7
func (m *RecognitionPart) GetConfidenceLevel() (int32, error)
GetConfidenceLevel calls android.speech.RecognitionPart.getConfidenceLevel.
func (*RecognitionPart) GetFormattedText ¶ added in v0.0.7
func (m *RecognitionPart) GetFormattedText() (string, error)
GetFormattedText calls android.speech.RecognitionPart.getFormattedText.
func (*RecognitionPart) GetRawText ¶ added in v0.0.7
func (m *RecognitionPart) GetRawText() (string, error)
GetRawText calls android.speech.RecognitionPart.getRawText.
func (*RecognitionPart) GetTimestampMillis ¶ added in v0.0.7
func (m *RecognitionPart) GetTimestampMillis() (int64, error)
GetTimestampMillis calls android.speech.RecognitionPart.getTimestampMillis.
func (*RecognitionPart) HashCode ¶ added in v0.0.7
func (m *RecognitionPart) HashCode() (int32, error)
HashCode calls android.speech.RecognitionPart.hashCode.
func (*RecognitionPart) ToString ¶ added in v0.0.7
func (m *RecognitionPart) ToString() (string, error)
ToString calls android.speech.RecognitionPart.toString.
func (*RecognitionPart) WriteToParcel ¶ added in v0.0.7
func (m *RecognitionPart) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.speech.RecognitionPart.writeToParcel.
type RecognitionPartBuilder ¶ added in v0.0.7
RecognitionPartBuilder wraps android.speech.RecognitionPart$Builder.
func (*RecognitionPartBuilder) Build ¶ added in v0.0.7
func (m *RecognitionPartBuilder) Build() (*jni.Object, error)
Build calls android.speech.RecognitionPart$Builder.build.
func (*RecognitionPartBuilder) SetConfidenceLevel ¶ added in v0.0.7
func (m *RecognitionPartBuilder) SetConfidenceLevel(arg0 int32) (*jni.Object, error)
SetConfidenceLevel calls android.speech.RecognitionPart$Builder.setConfidenceLevel.
func (*RecognitionPartBuilder) SetFormattedText ¶ added in v0.0.7
func (m *RecognitionPartBuilder) SetFormattedText(arg0 string) (*jni.Object, error)
SetFormattedText calls android.speech.RecognitionPart$Builder.setFormattedText.
func (*RecognitionPartBuilder) SetRawText ¶ added in v0.0.7
func (m *RecognitionPartBuilder) SetRawText(arg0 string) (*jni.Object, error)
SetRawText calls android.speech.RecognitionPart$Builder.setRawText.
func (*RecognitionPartBuilder) SetTimestampMillis ¶ added in v0.0.7
func (m *RecognitionPartBuilder) SetTimestampMillis(arg0 int64) (*jni.Object, error)
SetTimestampMillis calls android.speech.RecognitionPart$Builder.setTimestampMillis.
type RecognitionService ¶ added in v0.0.7
RecognitionService wraps android.speech.RecognitionService.
func (*RecognitionService) CreateContext ¶ added in v0.0.7
CreateContext calls android.speech.RecognitionService.createContext.
func (*RecognitionService) GetMaxConcurrentSessionsCount ¶ added in v0.0.7
func (m *RecognitionService) GetMaxConcurrentSessionsCount() (int32, error)
GetMaxConcurrentSessionsCount calls android.speech.RecognitionService.getMaxConcurrentSessionsCount.
func (*RecognitionService) OnBind ¶ added in v0.0.7
OnBind calls android.speech.RecognitionService.onBind.
func (*RecognitionService) OnCheckRecognitionSupport2_1 ¶ added in v0.0.7
OnCheckRecognitionSupport2_1 calls android.speech.RecognitionService.onCheckRecognitionSupport.
func (*RecognitionService) OnCheckRecognitionSupport3 ¶ added in v0.0.7
func (m *RecognitionService) OnCheckRecognitionSupport3( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, ) error
OnCheckRecognitionSupport3 calls android.speech.RecognitionService.onCheckRecognitionSupport.
func (*RecognitionService) OnDestroy ¶ added in v0.0.7
func (m *RecognitionService) OnDestroy() error
OnDestroy calls android.speech.RecognitionService.onDestroy.
func (*RecognitionService) OnTriggerModelDownload1 ¶ added in v0.0.7
func (m *RecognitionService) OnTriggerModelDownload1(arg0 *jni.Object) error
OnTriggerModelDownload1 calls android.speech.RecognitionService.onTriggerModelDownload.
func (*RecognitionService) OnTriggerModelDownload2_1 ¶ added in v0.0.7
OnTriggerModelDownload2_1 calls android.speech.RecognitionService.onTriggerModelDownload.
func (*RecognitionService) OnTriggerModelDownload3_2 ¶ added in v0.0.7
func (m *RecognitionService) OnTriggerModelDownload3_2( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, ) error
OnTriggerModelDownload3_2 calls android.speech.RecognitionService.onTriggerModelDownload.
type RecognitionServiceCallback ¶ added in v0.0.7
RecognitionServiceCallback wraps android.speech.RecognitionService$Callback.
func (*RecognitionServiceCallback) BeginningOfSpeech ¶ added in v0.0.7
func (m *RecognitionServiceCallback) BeginningOfSpeech() error
BeginningOfSpeech calls android.speech.RecognitionService$Callback.beginningOfSpeech.
func (*RecognitionServiceCallback) BufferReceived ¶ added in v0.0.7
func (m *RecognitionServiceCallback) BufferReceived(arg0 *jni.Object) error
BufferReceived calls android.speech.RecognitionService$Callback.bufferReceived.
func (*RecognitionServiceCallback) EndOfSegmentedSession ¶ added in v0.0.7
func (m *RecognitionServiceCallback) EndOfSegmentedSession() error
EndOfSegmentedSession calls android.speech.RecognitionService$Callback.endOfSegmentedSession.
func (*RecognitionServiceCallback) EndOfSpeech ¶ added in v0.0.7
func (m *RecognitionServiceCallback) EndOfSpeech() error
EndOfSpeech calls android.speech.RecognitionService$Callback.endOfSpeech.
func (*RecognitionServiceCallback) Error ¶ added in v0.0.7
func (m *RecognitionServiceCallback) Error(arg0 int32) error
Error calls android.speech.RecognitionService$Callback.error.
func (*RecognitionServiceCallback) GetCallingAttributionSource ¶ added in v0.0.7
func (m *RecognitionServiceCallback) GetCallingAttributionSource() (*jni.Object, error)
GetCallingAttributionSource calls android.speech.RecognitionService$Callback.getCallingAttributionSource.
func (*RecognitionServiceCallback) GetCallingUid ¶ added in v0.0.7
func (m *RecognitionServiceCallback) GetCallingUid() (int32, error)
GetCallingUid calls android.speech.RecognitionService$Callback.getCallingUid.
func (*RecognitionServiceCallback) LanguageDetection ¶ added in v0.0.7
func (m *RecognitionServiceCallback) LanguageDetection(arg0 *jni.Object) error
LanguageDetection calls android.speech.RecognitionService$Callback.languageDetection.
func (*RecognitionServiceCallback) PartialResults ¶ added in v0.0.7
func (m *RecognitionServiceCallback) PartialResults(arg0 *jni.Object) error
PartialResults calls android.speech.RecognitionService$Callback.partialResults.
func (*RecognitionServiceCallback) ReadyForSpeech ¶ added in v0.0.7
func (m *RecognitionServiceCallback) ReadyForSpeech(arg0 *jni.Object) error
ReadyForSpeech calls android.speech.RecognitionService$Callback.readyForSpeech.
func (*RecognitionServiceCallback) Results ¶ added in v0.0.7
func (m *RecognitionServiceCallback) Results(arg0 *jni.Object) error
Results calls android.speech.RecognitionService$Callback.results.
func (*RecognitionServiceCallback) RmsChanged ¶ added in v0.0.7
func (m *RecognitionServiceCallback) RmsChanged(arg0 float32) error
RmsChanged calls android.speech.RecognitionService$Callback.rmsChanged.
func (*RecognitionServiceCallback) SegmentResults ¶ added in v0.0.7
func (m *RecognitionServiceCallback) SegmentResults(arg0 *jni.Object) error
SegmentResults calls android.speech.RecognitionService$Callback.segmentResults.
type RecognitionServiceSupportCallback ¶ added in v0.0.7
RecognitionServiceSupportCallback wraps android.speech.RecognitionService$SupportCallback.
func (*RecognitionServiceSupportCallback) OnError ¶ added in v0.0.7
func (m *RecognitionServiceSupportCallback) OnError(arg0 int32) error
OnError calls android.speech.RecognitionService$SupportCallback.onError.
func (*RecognitionServiceSupportCallback) OnSupportResult ¶ added in v0.0.7
func (m *RecognitionServiceSupportCallback) OnSupportResult(arg0 *jni.Object) error
OnSupportResult calls android.speech.RecognitionService$SupportCallback.onSupportResult.
type RecognitionSupport ¶ added in v0.0.7
RecognitionSupport wraps android.speech.RecognitionSupport.
func (*RecognitionSupport) DescribeContents ¶ added in v0.0.7
func (m *RecognitionSupport) DescribeContents() (int32, error)
DescribeContents calls android.speech.RecognitionSupport.describeContents.
func (*RecognitionSupport) Equals ¶ added in v0.0.7
func (m *RecognitionSupport) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.speech.RecognitionSupport.equals.
func (*RecognitionSupport) HashCode ¶ added in v0.0.7
func (m *RecognitionSupport) HashCode() (int32, error)
HashCode calls android.speech.RecognitionSupport.hashCode.
func (*RecognitionSupport) ToString ¶ added in v0.0.7
func (m *RecognitionSupport) ToString() (string, error)
ToString calls android.speech.RecognitionSupport.toString.
func (*RecognitionSupport) WriteToParcel ¶ added in v0.0.7
func (m *RecognitionSupport) WriteToParcel(arg0 *jni.Object, arg1 int32) error
WriteToParcel calls android.speech.RecognitionSupport.writeToParcel.
type RecognitionSupportBuilder ¶ added in v0.0.7
RecognitionSupportBuilder wraps android.speech.RecognitionSupport$Builder.
func (*RecognitionSupportBuilder) AddInstalledOnDeviceLanguage ¶ added in v0.0.7
func (m *RecognitionSupportBuilder) AddInstalledOnDeviceLanguage(arg0 string) (*jni.Object, error)
AddInstalledOnDeviceLanguage calls android.speech.RecognitionSupport$Builder.addInstalledOnDeviceLanguage.
func (*RecognitionSupportBuilder) AddOnlineLanguage ¶ added in v0.0.7
func (m *RecognitionSupportBuilder) AddOnlineLanguage(arg0 string) (*jni.Object, error)
AddOnlineLanguage calls android.speech.RecognitionSupport$Builder.addOnlineLanguage.
func (*RecognitionSupportBuilder) AddPendingOnDeviceLanguage ¶ added in v0.0.7
func (m *RecognitionSupportBuilder) AddPendingOnDeviceLanguage(arg0 string) (*jni.Object, error)
AddPendingOnDeviceLanguage calls android.speech.RecognitionSupport$Builder.addPendingOnDeviceLanguage.
func (*RecognitionSupportBuilder) AddSupportedOnDeviceLanguage ¶ added in v0.0.7
func (m *RecognitionSupportBuilder) AddSupportedOnDeviceLanguage(arg0 string) (*jni.Object, error)
AddSupportedOnDeviceLanguage calls android.speech.RecognitionSupport$Builder.addSupportedOnDeviceLanguage.
type RecognitionSupportCallback ¶ added in v0.0.7
RecognitionSupportCallback wraps android.speech.RecognitionSupportCallback.
func (*RecognitionSupportCallback) OnError ¶ added in v0.0.7
func (m *RecognitionSupportCallback) OnError(arg0 int32) error
OnError calls android.speech.RecognitionSupportCallback.onError.
func (*RecognitionSupportCallback) OnSupportResult ¶ added in v0.0.7
func (m *RecognitionSupportCallback) OnSupportResult(arg0 *jni.Object) error
OnSupportResult calls android.speech.RecognitionSupportCallback.onSupportResult.
type Recognizer ¶ added in v0.0.4
Recognizer wraps android.speech.SpeechRecognizer.
func (*Recognizer) Cancel ¶ added in v0.0.4
func (m *Recognizer) Cancel() error
Cancel calls android.speech.SpeechRecognizer.cancel.
func (*Recognizer) CheckRecognitionSupport ¶ added in v0.0.4
func (m *Recognizer) CheckRecognitionSupport( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, ) error
CheckRecognitionSupport calls android.speech.SpeechRecognizer.checkRecognitionSupport.
func (*Recognizer) CreateOnDeviceSpeechRecognizer ¶ added in v0.0.4
CreateOnDeviceSpeechRecognizer calls android.speech.SpeechRecognizer.createOnDeviceSpeechRecognizer.
func (*Recognizer) CreateSpeechRecognizer1 ¶ added in v0.0.4
CreateSpeechRecognizer1 calls android.speech.SpeechRecognizer.createSpeechRecognizer.
func (*Recognizer) CreateSpeechRecognizer2_1 ¶ added in v0.0.4
func (m *Recognizer) CreateSpeechRecognizer2_1(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)
CreateSpeechRecognizer2_1 calls android.speech.SpeechRecognizer.createSpeechRecognizer.
func (*Recognizer) Destroy ¶ added in v0.0.4
func (m *Recognizer) Destroy() error
Destroy calls android.speech.SpeechRecognizer.destroy.
func (*Recognizer) IsOnDeviceRecognitionAvailable ¶ added in v0.0.4
func (m *Recognizer) IsOnDeviceRecognitionAvailable(arg0 *jni.Object) (bool, error)
IsOnDeviceRecognitionAvailable calls android.speech.SpeechRecognizer.isOnDeviceRecognitionAvailable.
func (*Recognizer) IsRecognitionAvailable ¶ added in v0.0.4
func (m *Recognizer) IsRecognitionAvailable(arg0 *jni.Object) (bool, error)
IsRecognitionAvailable calls android.speech.SpeechRecognizer.isRecognitionAvailable.
func (*Recognizer) SetRecognitionListener ¶ added in v0.0.4
func (m *Recognizer) SetRecognitionListener(arg0 *jni.Object) error
SetRecognitionListener calls android.speech.SpeechRecognizer.setRecognitionListener.
func (*Recognizer) StartListening ¶ added in v0.0.4
func (m *Recognizer) StartListening(arg0 *jni.Object) error
StartListening calls android.speech.SpeechRecognizer.startListening.
func (*Recognizer) StopListening ¶ added in v0.0.4
func (m *Recognizer) StopListening() error
StopListening calls android.speech.SpeechRecognizer.stopListening.
func (*Recognizer) TriggerModelDownload1 ¶ added in v0.0.4
func (m *Recognizer) TriggerModelDownload1(arg0 *jni.Object) error
TriggerModelDownload1 calls android.speech.SpeechRecognizer.triggerModelDownload.
func (*Recognizer) TriggerModelDownload3_1 ¶ added in v0.0.4
func (m *Recognizer) TriggerModelDownload3_1( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, ) error
TriggerModelDownload3_1 calls android.speech.SpeechRecognizer.triggerModelDownload.
type RecognizerIntent ¶ added in v0.0.7
RecognizerIntent wraps android.speech.RecognizerIntent.
func (*RecognizerIntent) GetVoiceDetailsIntent ¶ added in v0.0.7
GetVoiceDetailsIntent calls android.speech.RecognizerIntent.getVoiceDetailsIntent.
type TextToSpeech ¶ added in v0.0.4
TextToSpeech wraps android.speech.tts.TextToSpeech.
func NewTTS ¶ added in v0.0.4
func NewTTS(vm *jni.VM) (*TextToSpeech, error)
NewTTS creates a new TextToSpeech instance via the no-arg constructor available in app_process context.
func NewTextToSpeech ¶ added in v0.0.7
NewTextToSpeech creates a new android.speech.tts.TextToSpeech instance.
func (*TextToSpeech) AddEarcon2 ¶ added in v0.0.4
AddEarcon2 calls android.speech.tts.TextToSpeech.addEarcon.
func (*TextToSpeech) AddEarcon2_1 ¶ added in v0.0.4
AddEarcon2_1 calls android.speech.tts.TextToSpeech.addEarcon.
func (*TextToSpeech) AddEarcon2_2 ¶ added in v0.0.4
func (m *TextToSpeech) AddEarcon2_2(arg0 string, arg1 string) (int32, error)
AddEarcon2_2 calls android.speech.tts.TextToSpeech.addEarcon.
func (*TextToSpeech) AddEarcon3_3 ¶ added in v0.0.4
AddEarcon3_3 calls android.speech.tts.TextToSpeech.addEarcon.
func (*TextToSpeech) AddSpeech2 ¶ added in v0.0.4
AddSpeech2 calls android.speech.tts.TextToSpeech.addSpeech.
func (*TextToSpeech) AddSpeech2_1 ¶ added in v0.0.4
AddSpeech2_1 calls android.speech.tts.TextToSpeech.addSpeech.
func (*TextToSpeech) AddSpeech2_3 ¶ added in v0.0.4
func (m *TextToSpeech) AddSpeech2_3(arg0 string, arg1 string) (int32, error)
AddSpeech2_3 calls android.speech.tts.TextToSpeech.addSpeech.
func (*TextToSpeech) AddSpeech3_2 ¶ added in v0.0.4
AddSpeech3_2 calls android.speech.tts.TextToSpeech.addSpeech.
func (*TextToSpeech) AddSpeech3_4 ¶ added in v0.0.4
AddSpeech3_4 calls android.speech.tts.TextToSpeech.addSpeech.
func (*TextToSpeech) AreDefaultsEnforced ¶ added in v0.0.4
func (m *TextToSpeech) AreDefaultsEnforced() (bool, error)
AreDefaultsEnforced calls android.speech.tts.TextToSpeech.areDefaultsEnforced.
func (*TextToSpeech) Close ¶ added in v0.0.4
func (m *TextToSpeech) Close()
Close releases the global reference to the underlying Java object.
func (*TextToSpeech) GetDefaultEngine ¶ added in v0.0.4
func (m *TextToSpeech) GetDefaultEngine() (string, error)
GetDefaultEngine calls android.speech.tts.TextToSpeech.getDefaultEngine.
func (*TextToSpeech) GetDefaultLanguage ¶ added in v0.0.4
func (m *TextToSpeech) GetDefaultLanguage() (*jni.Object, error)
GetDefaultLanguage calls android.speech.tts.TextToSpeech.getDefaultLanguage.
func (*TextToSpeech) GetDefaultVoice ¶ added in v0.0.4
func (m *TextToSpeech) GetDefaultVoice() (*jni.Object, error)
GetDefaultVoice calls android.speech.tts.TextToSpeech.getDefaultVoice.
func (*TextToSpeech) GetLanguage ¶ added in v0.0.4
func (m *TextToSpeech) GetLanguage() (*jni.Object, error)
GetLanguage calls android.speech.tts.TextToSpeech.getLanguage.
func (*TextToSpeech) GetMaxSpeechInputLength ¶ added in v0.0.4
func (m *TextToSpeech) GetMaxSpeechInputLength() (int32, error)
GetMaxSpeechInputLength calls android.speech.tts.TextToSpeech.getMaxSpeechInputLength.
func (*TextToSpeech) GetVoice ¶ added in v0.0.4
func (m *TextToSpeech) GetVoice() (*jni.Object, error)
GetVoice calls android.speech.tts.TextToSpeech.getVoice.
func (*TextToSpeech) IsLanguageAvailable ¶ added in v0.0.4
func (m *TextToSpeech) IsLanguageAvailable(arg0 *jni.Object) (int32, error)
IsLanguageAvailable calls android.speech.tts.TextToSpeech.isLanguageAvailable.
func (*TextToSpeech) IsSpeaking ¶ added in v0.0.4
func (m *TextToSpeech) IsSpeaking() (bool, error)
IsSpeaking calls android.speech.tts.TextToSpeech.isSpeaking.
func (*TextToSpeech) PlayEarcon ¶ added in v0.0.7
func (m *TextToSpeech) PlayEarcon( arg0 string, arg1 int32, arg2 *jni.Object, arg3 string, ) (int32, error)
PlayEarcon calls android.speech.tts.TextToSpeech.playEarcon.
func (*TextToSpeech) PlaySilentUtterance ¶ added in v0.0.4
PlaySilentUtterance calls android.speech.tts.TextToSpeech.playSilentUtterance.
func (*TextToSpeech) SetAudioAttributes ¶ added in v0.0.4
func (m *TextToSpeech) SetAudioAttributes(arg0 *jni.Object) (int32, error)
SetAudioAttributes calls android.speech.tts.TextToSpeech.setAudioAttributes.
func (*TextToSpeech) SetEngineByPackageName ¶ added in v0.0.4
func (m *TextToSpeech) SetEngineByPackageName(arg0 string) (int32, error)
SetEngineByPackageName calls android.speech.tts.TextToSpeech.setEngineByPackageName.
func (*TextToSpeech) SetLanguage ¶ added in v0.0.4
func (m *TextToSpeech) SetLanguage(arg0 *jni.Object) (int32, error)
SetLanguage calls android.speech.tts.TextToSpeech.setLanguage.
func (*TextToSpeech) SetOnUtteranceCompletedListener ¶ added in v0.0.4
func (m *TextToSpeech) SetOnUtteranceCompletedListener(arg0 *jni.Object) (int32, error)
SetOnUtteranceCompletedListener calls android.speech.tts.TextToSpeech.setOnUtteranceCompletedListener.
func (*TextToSpeech) SetOnUtteranceProgressListener ¶ added in v0.0.4
func (m *TextToSpeech) SetOnUtteranceProgressListener(arg0 *jni.Object) (int32, error)
SetOnUtteranceProgressListener calls android.speech.tts.TextToSpeech.setOnUtteranceProgressListener.
func (*TextToSpeech) SetPitch ¶ added in v0.0.4
func (m *TextToSpeech) SetPitch(arg0 float32) (int32, error)
SetPitch calls android.speech.tts.TextToSpeech.setPitch.
func (*TextToSpeech) SetSpeechRate ¶ added in v0.0.4
func (m *TextToSpeech) SetSpeechRate(arg0 float32) (int32, error)
SetSpeechRate calls android.speech.tts.TextToSpeech.setSpeechRate.
func (*TextToSpeech) SetVoice ¶ added in v0.0.4
func (m *TextToSpeech) SetVoice(arg0 *jni.Object) (int32, error)
SetVoice calls android.speech.tts.TextToSpeech.setVoice.
func (*TextToSpeech) Shutdown ¶ added in v0.0.4
func (m *TextToSpeech) Shutdown() error
Shutdown calls android.speech.tts.TextToSpeech.shutdown.
func (*TextToSpeech) Speak ¶ added in v0.0.7
func (m *TextToSpeech) Speak( arg0 string, arg1 int32, arg2 *jni.Object, arg3 string, ) (int32, error)
Speak calls android.speech.tts.TextToSpeech.speak.
func (*TextToSpeech) Stop ¶ added in v0.0.4
func (m *TextToSpeech) Stop() (int32, error)
Stop calls android.speech.tts.TextToSpeech.stop.
type TextToSpeechEngineInfo ¶ added in v0.0.7
TextToSpeechEngineInfo wraps android.speech.tts.TextToSpeech$EngineInfo.
func (*TextToSpeechEngineInfo) ToString ¶ added in v0.0.7
func (m *TextToSpeechEngineInfo) ToString() (string, error)
ToString calls android.speech.tts.TextToSpeech$EngineInfo.toString.
type TextToSpeechOnInitListener ¶ added in v0.0.7
TextToSpeechOnInitListener wraps android.speech.tts.TextToSpeech$OnInitListener.
func (*TextToSpeechOnInitListener) OnInit ¶ added in v0.0.7
func (m *TextToSpeechOnInitListener) OnInit(arg0 int32) error
OnInit calls android.speech.tts.TextToSpeech$OnInitListener.onInit.
type TextToSpeechOnUtteranceCompletedListener ¶ added in v0.0.7
TextToSpeechOnUtteranceCompletedListener wraps android.speech.tts.TextToSpeech$OnUtteranceCompletedListener.
func (*TextToSpeechOnUtteranceCompletedListener) OnUtteranceCompleted ¶ added in v0.0.7
func (m *TextToSpeechOnUtteranceCompletedListener) OnUtteranceCompleted(arg0 string) error
OnUtteranceCompleted calls android.speech.tts.TextToSpeech$OnUtteranceCompletedListener.onUtteranceCompleted.
Source Files
¶
- alternative_span.go
- alternative_spans.go
- constants.go
- doc.go
- init.go
- model_download_listener.go
- new_tts.go
- recognition_listener.go
- recognition_part.go
- recognition_part_builder.go
- recognition_service.go
- recognition_service_callback.go
- recognition_service_support_callback.go
- recognition_support.go
- recognition_support_builder.go
- recognition_support_callback.go
- recognizer.go
- recognizer_intent.go
- text_to_speech.go
- text_to_speech_engine_info.go
- text_to_speech_on_init_listener.go
- text_to_speech_on_utterance_completed_listener.go