【发布时间】:2020-03-11 19:45:06
【问题描述】:
https://github.com/bradmartin/nativescript-texttospeech
texttospeech 有用 TS 编写的文档。
如何将代码翻译成ns-VUE?
import { TNSTextToSpeech, SpeakOptions } from 'nativescript-texttospeech';
let TTS = new TNSTextToSpeech();
let speakOptions: SpeakOptions = {
text: 'hello world',
};
TTS.speak(speakOptions);
我不想使用 typescript,我只需要一个在 Nativescript-Vue 中说话的按钮。
提前致谢
【问题讨论】:
-
Typescript 只是 javascript 的上标。如果您有本机 javascript 代码,它的工作原理是一样的。构建时是否遇到任何错误?
标签: typescript vue.js nativescript-vue