Hola a todos.
Sphinx es un proyecto de código abierto de reconocimiento de voz creado y mantenido por la Universidad Carniege Mellon.
Fuente: http://cosasquenuncaencuentro.blogs...cmu-sphinx.html
Saludos.
Sphinx - Reconocimiento De Voz
Subject: Re: Sphinx - Reconocimiento De Voz
Hola Tincho.
¿ Está en español ?. En el blog que enlazas parece que si.
En cambio en la web del proyecto, dice...
Y entre los idiomas está el español. Como si fuese para la próxima versión.
Claro que tampoco puedo probarlo.
Para el que hace videoconferencias, videotutoriales es normal tener un micrófono.
En mi caso hace que no veo un micro desde el tiempo de la Sound Blaster Awe32. Que dicho
micro tenía la característica que solo recogía el sonido más próximo a el. Cuando normalmente
estamos acostumbrados a micros que cogían hasta a la vecina cantando en el portal.
Saludos
¿ Está en español ?. En el blog que enlazas parece que si.
En cambio en la web del proyecto, dice...
Citar:
Y entre los idiomas está el español. Como si fuese para la próxima versión.
Claro que tampoco puedo probarlo.
Para el que hace videoconferencias, videotutoriales es normal tener un micrófono.
En mi caso hace que no veo un micro desde el tiempo de la Sound Blaster Awe32. Que dicho
micro tenía la característica que solo recogía el sonido más próximo a el. Cuando normalmente
estamos acostumbrados a micros que cogían hasta a la vecina cantando en el portal.
Saludos
Subject: Re: Sphinx - Reconocimiento De Voz
Hola, este post es de hace un tiempo pero no por ello deja de ser interesante.
Encontré un ejemplo de como usar estas librerías tan interesantes pero dicho ejemplo esta escrito en python
Apelo a Vuott, nuestro guru de las librerías y el lenguaje C, para que, si tiene tiempo y le parece interesante, nos ilustre sobre como hacer algo en gambas con ella.
Dejo el link del ejemplo
Saludos.
Encontré un ejemplo de como usar estas librerías tan interesantes pero dicho ejemplo esta escrito en python
Apelo a Vuott, nuestro guru de las librerías y el lenguaje C, para que, si tiene tiempo y le parece interesante, nos ilustre sobre como hacer algo en gambas con ella.
Dejo el link del ejemplo
Saludos.
Subject: Re: Sphinx - Reconocimiento De Voz
Pero como era de esperar el ejemplo no funciona. Aparece un error. al instalar con pip el prgrama.
Saludos.
Saludos.
Subject: Re: Sphinx - Reconocimiento De Voz
Last edited by Shell on Tuesday, 02 October 2018, 14:03; edited 1 time in total
Tincho:
Pues no es tan antiguo el tema en el blog.
¿ Qué error te dio ?. No puedo probarlo...
Saludos
Citar:
Pues no es tan antiguo el tema en el blog.
¿ Qué error te dio ?. No puedo probarlo...
Saludos
Last edited by Shell on Tuesday, 02 October 2018, 14:03; edited 1 time in total
Subject: Re: Sphinx - Reconocimiento De Voz
Me dio un error al instalar
Al ejecutar el comando
Devuuelve el error
Saludos.
Shell escribió:
Me dio un error al instalar
Al ejecutar el comando
pip install pocketsphinx
Devuuelve el error
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
Saludos.
Subject: Re: Sphinx - Reconocimiento De Voz
Luego encontre otros scripts pero me da el mismo error ya que tambien me pide instalar:
Script 1 - Delayed speech-to-text:
Script 2 - Immediate albeit inaccurate speech-to-text:
pip install SpeechRecognition
pip install pocketsphinx
pip install pocketsphinx
Script 1 - Delayed speech-to-text:
import speech_recognition as sr
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Please wait. Calibrating microphone...")
# listen for 5 seconds and create the ambient noise energy level
r.adjust_for_ambient_noise(source, duration=5)
print("Say something!")
audio = r.listen(source)
# recognize speech using Sphinx
try:
print("Sphinx thinks you said '" + r.recognize_sphinx(audio) + "'")
except sr.UnknownValueError:
print("Sphinx could not understand audio")
except sr.RequestError as e:
print("Sphinx error; {0}".format(e))
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Please wait. Calibrating microphone...")
# listen for 5 seconds and create the ambient noise energy level
r.adjust_for_ambient_noise(source, duration=5)
print("Say something!")
audio = r.listen(source)
# recognize speech using Sphinx
try:
print("Sphinx thinks you said '" + r.recognize_sphinx(audio) + "'")
except sr.UnknownValueError:
print("Sphinx could not understand audio")
except sr.RequestError as e:
print("Sphinx error; {0}".format(e))
Script 2 - Immediate albeit inaccurate speech-to-text:
import os
from pocketsphinx import LiveSpeech, get_model_path
model_path = get_model_path()
speech = LiveSpeech(
verbose=False,
sampling_rate=16000,
buffer_size=2048,
no_search=False,
full_utt=False,
hmm=os.path.join(model_path, 'en-us'),
lm=os.path.join(model_path, 'en-us.lm.bin'),
dic=os.path.join(model_path, 'cmudict-en-us.dict')
)
for phrase in speech: print(phrase)
from pocketsphinx import LiveSpeech, get_model_path
model_path = get_model_path()
speech = LiveSpeech(
verbose=False,
sampling_rate=16000,
buffer_size=2048,
no_search=False,
full_utt=False,
hmm=os.path.join(model_path, 'en-us'),
lm=os.path.join(model_path, 'en-us.lm.bin'),
dic=os.path.join(model_path, 'cmudict-en-us.dict')
)
for phrase in speech: print(phrase)
Page 1 of 3
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo
Generation Time: 0.1267s (PHP: -41% SQL: 141%)
SQL queries: 23 - Debug Off - GZIP Enabled