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

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

问题描述

您可能知道,使用 Android API 实现语音转文本非常简单.您所要做的就是调用 API 的意图,它会为您返回文本.我的情况有点不同,我有一个预先录制的 3GPP 声音文件,我从用户那里录制并保存在 SD 卡上.我想知道是否可以像任何其他语音识别一样将其转录成文本.语音转文本 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 kHz)以获得更好的转录效果.

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.

另见:

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

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