如何使用印地文(印度母语)语言文本到语音? [英] How to use Hindi(Indian Mother Tongue) language in Text-To-Speech?

查看:409
本文介绍了如何使用印地文(印度母语)语言文本到语音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了学生的应用程序。我需要在印地文和马拉地输入数据。
当用户点击特定的主题,然后用户应该能够听这个话题在印地文或马拉。
我知道如何设置语言在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不支持印地文。你可能需要做的就是创建一个使用印地文文本,并将其转换为音频文件的服务。这样,你会流中的音频文件到您的Andr​​oid应用程序。

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引擎我会尝试一下先,以确保产生的声音是可以接受的。大多数顶级教育应用的今天(例如:汗学院)使用pre录制的音频和/或视频。

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.

这篇关于如何使用印地文(印度母语)语言文本到语音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆