import { TextToSpeech } from '@ionic-native/text-to-speech' ; export interface TTSOptions { /** text to speak */ text : string ; /** a string like 'en-US', 'zh-CN', etc */ locale ? : string ; /** speed rate, 0 ~ 1 */ rate ? : number ; } export class TextToSpeechMock extends TextToSpeech { param textOrOptions { string | TTSOptions } return { Promise < any > } speak ( textOrOptions ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } stop ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }