Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

python - Speech Recognition did not proving me full text of different slang English language

I have one audio file in .wav format. but when I process it in speech to text model it will not giving me full text. Audio is in English with different slang.

please help me how can i will get the full text. my audio file is only for 0.15 second.

import speech_recognition as sr
r = sr.Recognizer()
os.chdir('.Speaker_diarization_Reporting_matrixcluster-chunks')
folder = '.Speaker_diarization_Reporting_matrixcluster-chunks'
filename = "1_speaker1.wav"
with sr.AudioFile(filename) as source:
# listen for the data (load audio to memory)
    audio_data = r.record(source)
        # recognize (convert from speech to text)
    text = r.recognize_google(audio_data)
    print(text)```
question from:https://stackoverflow.com/questions/65840497/speech-recognition-did-not-proving-me-full-text-of-different-slang-english-langu

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...