我正在为学生创建一个应用程序.我需要用印地语或马拉地语输入数据.
当用户点击特定主题时,用户应该能够以印地语或马拉地语收听该主题.
我知道如何在 TextToSpeech 中设置语言,例如
I am creating an application for student. I need to enter data in Hindi or Marathi.
When user clicks on specific topic then user should be able to listen this topic in Hindi Or Marathi.
I know How to set Language in TextToSpeech like
Tts.setLanguage(Locale.US);
我需要设置印地语或马拉地语.我的问题是如何使用马拉地语或印地语
TextToSpeech 中的语言.请给我任何参考或提示.
I need to set Hindi or Marathi Language. My question is that how to use Marathi or Hindi
Language in TextToSpeech. Please give me any reference or hint.
您需要一个支持印地语的文本转语音 (TTS) 引擎.每个 TTS 引擎都有它支持的特定语言.这是一个支持印地语的TTS 引擎,但它在Windows 上运行.我从标签中看到您希望在 Android 上支持此功能.这是关于在 Android 上支持印地语 TTS 的帖子.Android 上的原生 TTS 不支持印地语.您可能需要做的是创建一个使用印地语文本并将其翻译成音频文件的服务.然后,您可以将音频文件流式传输到您的 Android 应用程序.
You need a text-to-speech (TTS) engine that supports Hindi. Each TTS engine has specific languages that it supports. Here is a TTS engine that supports Hindi, but this runs on Windows. I see from the tags that you want to support this on Android. Here is a post about supporting Hindi TTS on an Android. The native TTS on Android does not support Hindi. What you may have to do is create a service that uses the Hindi text and translates it to an audio file. You would then stream the audio file to your Android application.
在我看来,尽管您不想将 TTS 用于教育应用程序.我想你会发现 TTS 的输出非常机械化,学生很难理解.我会记录课程/信息,然后将其流式传输到您的应用程序中.在您购买任何 TTS 引擎之前,我会先尝试一下,以确保生成的语音是可以接受的.当今大多数顶级教育应用程序(例如:可汗学院)都使用预先录制的音频和/或视频.
In my opinion though you will not want to use TTS for an educational application. I think you will find the output from the TTS very robotic and hard to understand by the students. I would record the lessons/information and just stream it in your application. Before you purchase any TTS engine I would try it out first to make sure that the generated voice is acceptable. Most of the top educational application today (ex: Khan Academy) use pre-recorded audio and/or video.
这篇关于如何在文本转语音中使用印地语(印度母语)语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!