1 Star 0 Fork 1

张青/react native 语音合成

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.d.ts 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
头上有煎饺 提交于 2019-12-16 13:14 . 1.0.2
export enum INIT_ENGINE_STATE {
START,
PROGRESS,
FINISH,
SDK_NOT_FOUND_ERROR,
SDK_COPY_ERROR
}
export enum STREAM_TYPE {
SYSTEM,
RING,
MUSIC,
ALARM,
NOTIFICATION
}
export enum VOLUME_FLAGS {
ALLOW_RINGER_MODES,
PLAY_SOUND,
REMOVE_SOUND_AND_VIBRATE,
SHOW_UI,
VIBRATE
}
export interface Options {
streamType: STREAM_TYPE,
volume: number,
pitch: number,
speed: number,
}
export interface InitEvent {
progress: number,
fileCount: number,
initState: INIT_ENGINE_STATE
}
export interface ErrorEvent {
msg: string
}
export namespace utils {
export function getVolume(): Promise<number>
export function getMaxVolume(): Promise<number>
export function setVolume(value: number, flag?: VOLUME_FLAGS): void
}
export function initEngine(appkey:string, secret: string, options?: Options): Promise<void>
export function setInitEngineListener(callback: (event: InitEvent) => any): void
export function setPlayStartListener(callback: () => any): void
export function setPlayEndListener(callback: () => any): void
export function setPauseListener(callback: () => any): void
export function setStopListener(callback: () => any): void
export function setResumeListener(callback: () => any): void
export function setReleaseListener(callback: () => any): void
export function setErrorListener(callback: (event: ErrorEvent) => any): void
export function playText(text: string): void
export function stopPlay(): void
export function pause(): void
export function resume(): void
export function release(): void
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zqxtgef/react-native-xfSpeech.git
git@gitee.com:zqxtgef/react-native-xfSpeech.git
zqxtgef
react-native-xfSpeech
react native 语音合成
master

搜索帮助