fixed tts_provider language and segment bugs