讲话从自己的声音文件中的文本自己的、声音文件、文本、讲话

2023-09-12 07:37:41 作者:再见陌生人

正如你可能知道,实现语音到文本pretty的方便了Android API。你所要做的仅仅是调用的API的意图,它会返回文本为您服务。我的情况有点不同,我有一个prerecorded,我已经从用户记录并保存在SD卡上3GPP的声音文件。我想知道,如果有可能的转录成像任何其他语音识别文本。是否语音到文本的API允许上传你要处理自己的声音文件?或者,这是不可能的?

As you probably know, implementing speech-to-text is pretty easy with the Android API. All you have to do is just call up the API's intent and it will return text for you. My case is a bit different, I have a prerecorded 3GPP sound file that I've recorded from the user and is saved on the SD card. I want to know if it's possible to transcribe that into text like any other speech recognition. Does the speech-to-text API allow for uploading you're own sound files to be processed? Or is this impossible?

推荐答案

该API不允许它,但看到的这个博客帖子和评论一个潜在的解决方法。另外,还要确保您的文件包含高品质音频(至少16位和16千赫),以获得更好的转录。

The API does not allow it, but see this blog post and its comments for a potential workaround. Also make sure that your file contains high quality audio (at least 16 bit and 16 kHz) to get a better transcription.

另请参阅:

Voice承认在Android与录制的声音片段?