0
我有一個非常簡單的問題要問。我想說其他語言,然後只是默認的en-US。我檢查官方頁面https://ionicframework.com/docs/native/text-to-speech/#TTSOptions,但我真的不知道如何將其應用於使用代碼中。離子本地插件文本到語音
用法:
import { TextToSpeech } from '@ionic-native/text-to-speech';
constructor(private tts: TextToSpeech) { }
...
this.tts.speak('Hello World')
.then(() => console.log('Success'))
.catch((reason: any) => console.log(reason));