Documentation
¶
Overview ¶
Package tts provides Go bindings for android.speech.tts.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type SynthesisCallback
- func (m *SynthesisCallback) AudioAvailable(arg0 *jni.Object, arg1 int32, arg2 int32) (int32, error)
- func (m *SynthesisCallback) Done() (int32, error)
- func (m *SynthesisCallback) Error0() error
- func (m *SynthesisCallback) Error1_1(arg0 int32) error
- func (m *SynthesisCallback) GetMaxBufferSize() (int32, error)
- func (m *SynthesisCallback) HasFinished() (bool, error)
- func (m *SynthesisCallback) HasStarted() (bool, error)
- func (m *SynthesisCallback) Start(arg0 int32, arg1 int32, arg2 int32) (int32, error)
- type SynthesisRequest
- func (m *SynthesisRequest) GetCallerUid() (int32, error)
- func (m *SynthesisRequest) GetCharSequenceText() (*jni.Object, error)
- func (m *SynthesisRequest) GetCountry() (string, error)
- func (m *SynthesisRequest) GetLanguage() (string, error)
- func (m *SynthesisRequest) GetParams() (*jni.Object, error)
- func (m *SynthesisRequest) GetPitch() (int32, error)
- func (m *SynthesisRequest) GetSpeechRate() (int32, error)
- func (m *SynthesisRequest) GetText() (string, error)
- func (m *SynthesisRequest) GetVariant() (string, error)
- func (m *SynthesisRequest) GetVoiceName() (string, error)
- type TextToSpeechService
- func (m *TextToSpeechService) OnBind(arg0 *jni.Object) (*jni.Object, error)
- func (m *TextToSpeechService) OnCreate() error
- func (m *TextToSpeechService) OnDestroy() error
- func (m *TextToSpeechService) OnGetDefaultVoiceNameFor(arg0 string, arg1 string, arg2 string) (string, error)
- func (m *TextToSpeechService) OnIsValidVoiceName(arg0 string) (int32, error)
- func (m *TextToSpeechService) OnLoadVoice(arg0 string) (int32, error)
- type UtteranceProgressListener
- func (m *UtteranceProgressListener) OnAudioAvailable(arg0 string, arg1 *jni.Object) error
- func (m *UtteranceProgressListener) OnBeginSynthesis(arg0 string, arg1 int32, arg2 int32, arg3 int32) error
- func (m *UtteranceProgressListener) OnDone(arg0 string) error
- func (m *UtteranceProgressListener) OnError1(arg0 string) error
- func (m *UtteranceProgressListener) OnError2_1(arg0 string, arg1 int32) error
- func (m *UtteranceProgressListener) OnRangeStart(arg0 string, arg1 int32, arg2 int32, arg3 int32) error
- func (m *UtteranceProgressListener) OnStart(arg0 string) error
- func (m *UtteranceProgressListener) OnStop(arg0 string, arg1 bool) error
- type Voice
- func (m *Voice) DescribeContents() (int32, error)
- func (m *Voice) Equals(arg0 *jni.Object) (bool, error)
- func (m *Voice) GetLatency() (int32, error)
- func (m *Voice) GetLocale() (*jni.Object, error)
- func (m *Voice) GetName() (string, error)
- func (m *Voice) GetQuality() (int32, error)
- func (m *Voice) HashCode() (int32, error)
- func (m *Voice) IsNetworkConnectionRequired() (bool, error)
- func (m *Voice) ToString() (string, error)
- func (m *Voice) WriteToParcel(arg0 *jni.Object, arg1 int32) error
Constants ¶
const ( Creator = consts.Creator LatencyHigh = consts.LatencyHigh LatencyLow = consts.LatencyLow LatencyNormal = consts.LatencyNormal LatencyVeryHigh = consts.LatencyVeryHigh LatencyVeryLow = consts.LatencyVeryLow QualityHigh = consts.QualityHigh QualityLow = consts.QualityLow QualityNormal = consts.QualityNormal QualityVeryHigh = consts.QualityVeryHigh QualityVeryLow = consts.QualityVeryLow )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SynthesisCallback ¶
SynthesisCallback wraps android.speech.tts.SynthesisCallback.
func (*SynthesisCallback) AudioAvailable ¶
func (m *SynthesisCallback) AudioAvailable( arg0 *jni.Object, arg1 int32, arg2 int32, ) (int32, error)
AudioAvailable calls android.speech.tts.SynthesisCallback.audioAvailable.
func (*SynthesisCallback) Done ¶
func (m *SynthesisCallback) Done() (int32, error)
Done calls android.speech.tts.SynthesisCallback.done.
func (*SynthesisCallback) Error0 ¶
func (m *SynthesisCallback) Error0() error
Error0 calls android.speech.tts.SynthesisCallback.error.
func (*SynthesisCallback) Error1_1 ¶
func (m *SynthesisCallback) Error1_1(arg0 int32) error
Error1_1 calls android.speech.tts.SynthesisCallback.error.
func (*SynthesisCallback) GetMaxBufferSize ¶
func (m *SynthesisCallback) GetMaxBufferSize() (int32, error)
GetMaxBufferSize calls android.speech.tts.SynthesisCallback.getMaxBufferSize.
func (*SynthesisCallback) HasFinished ¶
func (m *SynthesisCallback) HasFinished() (bool, error)
HasFinished calls android.speech.tts.SynthesisCallback.hasFinished.
func (*SynthesisCallback) HasStarted ¶
func (m *SynthesisCallback) HasStarted() (bool, error)
HasStarted calls android.speech.tts.SynthesisCallback.hasStarted.
type SynthesisRequest ¶
SynthesisRequest wraps android.speech.tts.SynthesisRequest.
func NewSynthesisRequest ¶
NewSynthesisRequest creates a new android.speech.tts.SynthesisRequest instance.
func (*SynthesisRequest) GetCallerUid ¶
func (m *SynthesisRequest) GetCallerUid() (int32, error)
GetCallerUid calls android.speech.tts.SynthesisRequest.getCallerUid.
func (*SynthesisRequest) GetCharSequenceText ¶
func (m *SynthesisRequest) GetCharSequenceText() (*jni.Object, error)
GetCharSequenceText calls android.speech.tts.SynthesisRequest.getCharSequenceText.
func (*SynthesisRequest) GetCountry ¶
func (m *SynthesisRequest) GetCountry() (string, error)
GetCountry calls android.speech.tts.SynthesisRequest.getCountry.
func (*SynthesisRequest) GetLanguage ¶
func (m *SynthesisRequest) GetLanguage() (string, error)
GetLanguage calls android.speech.tts.SynthesisRequest.getLanguage.
func (*SynthesisRequest) GetParams ¶
func (m *SynthesisRequest) GetParams() (*jni.Object, error)
GetParams calls android.speech.tts.SynthesisRequest.getParams.
func (*SynthesisRequest) GetPitch ¶
func (m *SynthesisRequest) GetPitch() (int32, error)
GetPitch calls android.speech.tts.SynthesisRequest.getPitch.
func (*SynthesisRequest) GetSpeechRate ¶
func (m *SynthesisRequest) GetSpeechRate() (int32, error)
GetSpeechRate calls android.speech.tts.SynthesisRequest.getSpeechRate.
func (*SynthesisRequest) GetText ¶
func (m *SynthesisRequest) GetText() (string, error)
GetText calls android.speech.tts.SynthesisRequest.getText.
func (*SynthesisRequest) GetVariant ¶
func (m *SynthesisRequest) GetVariant() (string, error)
GetVariant calls android.speech.tts.SynthesisRequest.getVariant.
func (*SynthesisRequest) GetVoiceName ¶
func (m *SynthesisRequest) GetVoiceName() (string, error)
GetVoiceName calls android.speech.tts.SynthesisRequest.getVoiceName.
type TextToSpeechService ¶
TextToSpeechService wraps android.speech.tts.TextToSpeechService.
func (*TextToSpeechService) OnCreate ¶
func (m *TextToSpeechService) OnCreate() error
OnCreate calls android.speech.tts.TextToSpeechService.onCreate.
func (*TextToSpeechService) OnDestroy ¶
func (m *TextToSpeechService) OnDestroy() error
OnDestroy calls android.speech.tts.TextToSpeechService.onDestroy.
func (*TextToSpeechService) OnGetDefaultVoiceNameFor ¶
func (m *TextToSpeechService) OnGetDefaultVoiceNameFor( arg0 string, arg1 string, arg2 string, ) (string, error)
OnGetDefaultVoiceNameFor calls android.speech.tts.TextToSpeechService.onGetDefaultVoiceNameFor.
func (*TextToSpeechService) OnIsValidVoiceName ¶
func (m *TextToSpeechService) OnIsValidVoiceName(arg0 string) (int32, error)
OnIsValidVoiceName calls android.speech.tts.TextToSpeechService.onIsValidVoiceName.
func (*TextToSpeechService) OnLoadVoice ¶
func (m *TextToSpeechService) OnLoadVoice(arg0 string) (int32, error)
OnLoadVoice calls android.speech.tts.TextToSpeechService.onLoadVoice.
type UtteranceProgressListener ¶
UtteranceProgressListener wraps android.speech.tts.UtteranceProgressListener.
func (*UtteranceProgressListener) OnAudioAvailable ¶
func (m *UtteranceProgressListener) OnAudioAvailable(arg0 string, arg1 *jni.Object) error
OnAudioAvailable calls android.speech.tts.UtteranceProgressListener.onAudioAvailable.
func (*UtteranceProgressListener) OnBeginSynthesis ¶
func (m *UtteranceProgressListener) OnBeginSynthesis( arg0 string, arg1 int32, arg2 int32, arg3 int32, ) error
OnBeginSynthesis calls android.speech.tts.UtteranceProgressListener.onBeginSynthesis.
func (*UtteranceProgressListener) OnDone ¶
func (m *UtteranceProgressListener) OnDone(arg0 string) error
OnDone calls android.speech.tts.UtteranceProgressListener.onDone.
func (*UtteranceProgressListener) OnError1 ¶
func (m *UtteranceProgressListener) OnError1(arg0 string) error
OnError1 calls android.speech.tts.UtteranceProgressListener.onError.
func (*UtteranceProgressListener) OnError2_1 ¶
func (m *UtteranceProgressListener) OnError2_1(arg0 string, arg1 int32) error
OnError2_1 calls android.speech.tts.UtteranceProgressListener.onError.
func (*UtteranceProgressListener) OnRangeStart ¶
func (m *UtteranceProgressListener) OnRangeStart( arg0 string, arg1 int32, arg2 int32, arg3 int32, ) error
OnRangeStart calls android.speech.tts.UtteranceProgressListener.onRangeStart.
func (*UtteranceProgressListener) OnStart ¶
func (m *UtteranceProgressListener) OnStart(arg0 string) error
OnStart calls android.speech.tts.UtteranceProgressListener.onStart.
type Voice ¶
Voice wraps android.speech.tts.Voice.
func NewVoice ¶
func NewVoice(vm *jni.VM, arg0 string, arg1 *jni.Object, arg2 int32, arg3 int32, arg4 bool, arg5 *jni.Object) (*Voice, error)
NewVoice creates a new android.speech.tts.Voice instance.
func (*Voice) DescribeContents ¶
DescribeContents calls android.speech.tts.Voice.describeContents.
func (*Voice) GetLatency ¶
GetLatency calls android.speech.tts.Voice.getLatency.
func (*Voice) GetQuality ¶
GetQuality calls android.speech.tts.Voice.getQuality.
func (*Voice) IsNetworkConnectionRequired ¶
IsNetworkConnectionRequired calls android.speech.tts.Voice.isNetworkConnectionRequired.