代码拉取完成,页面将自动刷新
同步操作将从 头上有煎饺/react native 语音合成 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。