fix tts not working for type and translate