0.0.7 • Published 2 years ago
@mqn/capacitor-plugin-tts v0.0.7
@mqn/capacitor-plugin-tts
Capacitor的Android平台TTS插件
Install
npm install @mqn/capacitor-plugin-tts
npx cap sync
API
init(...)
init(options: InitOptions) => Promise<void>
初始化
Param | Type |
---|---|
options | InitOptions |
speak(...)
speak(options: SpeakOptions) => Promise<void>
合成语音
Param | Type |
---|---|
options | SpeakOptions |
Interfaces
InitOptions
初始化选项
Prop | Type | Description |
---|---|---|
Engine | string | 语音引擎包名 |
SpeakOptions
语音合成选项
Prop | Type | Description |
---|---|---|
Text | string | 语音文本 |
Pitch | number | 音调 |
Rate | number | 语音速率 |
QueueMode | 'ADD' | 'FLUSH' | 队列模式 |