Here we develop Speech Generative project which conatin the folowing tools.
- Text To Speech
- Speech To Text
- Speech Enhancement
conda create -n <env_name>
conda activate <env_name>
git clone https://github.com/USTAADCOM/Speech_brain.git
cd Speech_brain
pip install -r requirements.txt -q
bash download_ckpt.sh
- api-key = secret key here
- CLOUD_NAME = cloud name (cloudinary)
- API_KEY = cloudinary api key
- API_SECRET = cloudinary secret phrase
Speech_brain
│ .env
│ .gitignore
│ app.py
│ lint-requirements.txt
│ pyproject.toml
│ README.md
│ requirements.txt
│ setup.py
│
└───modules
│ speech_to_text_module.py
│ text_to_speech_module.py
│
Payload
{
"text_data" : "Your string here"
}
Response
{
'text_data': 'Input string',
'speech_file': 'speech file path'
}
Payload
{
"speech_file" : "speech_file_source"
}
Response
{
'speech_file': 'input speech_file path',
'text': 'text output from speech file'
}
python3 app.py