从自己的声音文件到文本的语音 [英] Speech to Text from own sound file

查看:247
本文介绍了从自己的声音文件到文本的语音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可能知道,使用Android API实现语音对文本非常简单。所有你需要做的只是调用API的意图,它会为你返回文本。我的情况有点不同,我有一个预录的3GPP声音文件,我从用户记录并保存在SD卡上。我想知道是否可以将其转录成文本,像任何其他语音识别。语音到文本API允许上传您自己的声音文件要处理?或者这是不可能的?

解决方案

API不允许,但请参阅这个博客文章及其评论有潜在的解决方法。还要确保您的文件包含高质量的音频(至少16位和16 kHz)以获得更好的转录。



另请参见:




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?

解决方案

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.

See also:

这篇关于从自己的声音文件到文本的语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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