import Clova from './types' ; export class SpeechBuilder { public static createSpeechText ( value , lang ? ) { return { lang : lang || SpeechBuilder . DEFAULT_LANG , type : 'PlainText' , value , } ; } public static createSpeechUrl ( value ) { return { lang : '' , type : 'URL' , value , } ; } private static defaultLang : Clova . SpeechLang = 'ja' ; static get DEFAULT_LANG ( ) : Clova . SpeechLang { return SpeechBuilder . defaultLang ; } static set DEFAULT_LANG ( lang ) { SpeechBuilder . defaultLang = lang ; } }