Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyspeech (python) - Transcribe mp3 files?

I'd like to transcribe mp3 (speech-to-text) using the pyspeech API. I don't know if this is possible, though.

Is it? How?

like image 436
Pauly Dee Avatar asked Jan 06 '11 03:01

Pauly Dee


People also ask

How does Python recognize audio?

Recognition of Spoken WordsPyaudio − It can be installed by using pip install Pyaudio command. SpeechRecognition − This package can be installed by using pip install SpeechRecognition. Google-Speech-API − It can be installed by using the command pip install google-api-python-client.

What is Pyspeech?

Several signal processing and feature extraction functions for automatic speech to text conversion, i.e Automatic Speech Recognition (ASR).


2 Answers

pyspeech seems to be merely a python interface to the regular Windows speech APIs. Most likely you'd create some method of treating mp3 playback as an audio source for that speech API to listen to.

like image 122
Marc B Avatar answered Sep 28 '22 09:09

Marc B


I don't know about pyspeech, but if it is a Python wrapper around the Microsoft speech APIs, then some other posts may be helpful.

Microsoft Speech engines do not require microphone input. They can accept audio files.

If you are doing transcription, you will need a dictation grammar. Dictation grammars are included with the client versions of Microsoft speech engines that ship with Windows 7 and Vista. Dictation grammars are not provided on the Server engines Microsoft provides.

A simple example of using a dictation grammar in C# with the System.Speech namespace is in the StackOverflow question SAPI and Windows 7 Problem

like image 40
Michael Levy Avatar answered Sep 28 '22 09:09

Michael Levy