You can install easySpeech very easily using the following command
pip3 install easySpeech
from easySpeech import speech
a=speech.speech('google')
print(a)
For production purpose use your own key because google can revoke the default api key at any time. Get your own api key from http://www.chromium.org/developers/how-tos/api-keys and use the following code
from easySpeech import speech
a=speech.speech('google',key="your api key")
print(a)
Specifying the duration of speech recognition in seconds(default value is 5 seconds)
from easySpeech import speech
a=speech.speech('google',duration = 10)
print(a)
Specifying the sample frequency(default is 44100)
from easySpeech import speech
a=speech.speech('google',duration = 10,freq = 44100)
print(a)
Specifying the language(works only for google speech api and default is english)
from easySpeech import speech
a=speech.speech('google',language="en-US")
print(a)
Converting an audio file to text(Currently it supports only wav file)
from easySpeech import speech
a=speech.google_audio('recording.wav')
print(a)
from easySpeech import speech
a=speech.speech('ml')
print(a)
Specifying the duration of speech recognition in seconds(default valus is 5 seconds)
from easySpeech import speech
a=speech.speech('ml',duration = 10)
print(a)
Specifying the sample frequency(default is 44100)
from easySpeech import speech
a=speech.speech('ml',duration = 10,freq = 44100)
print(a)
Converting an audio file to text(Currently it supports only wav file)
from easySpeech import ml
a=ml.ml('recording.wav')
print(a)
from easySpeech import speech
speech.recorder('recording.wav')
For recording audio with a specific frequency use the following code(default is 44100)
from easySpeech import speech
speech.recorder('recording.wav',freq = 50000)
For recording audio for a specific duration use the following code(default is 5s)
from easySpeech import speech
speech.recorder('recording.wav',duration = 50)
Since it is a free software , you can contribute to make it better. New contributors are always welcome, whether you write code, create resources, report bugs, or suggest features.
The easySpeech is written primarily in Python3x
Have a look at the open issues to find a mission that resonates with you.
Email: saptakbhoumik@gmail.com
If you find any bug make a issue immediately.
easySpeech is lisenced under MIT license
MIT License | Copyright (c) 2021 SaptakBhoumik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software
Version | Tag | Published |
---|---|---|
1.0.2 | 1yr ago | |
1.0.1 | 1yr ago | |
1 | 1yr ago |