Official Repo for AudioMos - APIs and Dashboard for public TTS/Audio Models built on Akash Network
See the codeAudioMOS is a comprehensive platform for audio processing models, including Text to Speech (TTS), Speech to Text (STT), and Voice Cloning, built on the Akash Network. It offers both API access and a web dashboard for seamless audio processing.
Clone the repository
git clone https://github.com/yourusername/audiomos.git
cd audiomos
Launch services
docker-compose up -d
Create a virtual environment
conda create -n audiomos python=3.9
conda activate audiomos
Install dependencies
pip install -r requirements.txt
Setup backend
python setup.py
Start the server
sh run.sh
To convert text to speech:
import requests
response = requests.post(
"http://localhost:8000/api/tts",
json={"text": "Hello World", "model": "basic"}
)
# Print the generated audio
with open("output.wav", "wb") as f:
f.write(response.content)
To transcribe speech to text:
import requests
files = {"audio": open("sample.wav", "rb")}
response = requests.post(
"http://localhost:8000/api/stt",
files=files
)
# Print the transcribed text
print(response.json()["text"])
MIT License
Official Repo for AudioMos - APIs and Dashboard for public TTS/Audio Models built on Akash Network
See the codeAudioMOS is a comprehensive platform for audio processing models, including Text to Speech (TTS), Speech to Text (STT), and Voice Cloning, built on the Akash Network. It offers both API access and a web dashboard for seamless audio processing.
Clone the repository
git clone https://github.com/yourusername/audiomos.git
cd audiomos
Launch services
docker-compose up -d
Create a virtual environment
conda create -n audiomos python=3.9
conda activate audiomos
Install dependencies
pip install -r requirements.txt
Setup backend
python setup.py
Start the server
sh run.sh
To convert text to speech:
import requests
response = requests.post(
"http://localhost:8000/api/tts",
json={"text": "Hello World", "model": "basic"}
)
# Print the generated audio
with open("output.wav", "wb") as f:
f.write(response.content)
To transcribe speech to text:
import requests
files = {"audio": open("sample.wav", "rb")}
response = requests.post(
"http://localhost:8000/api/stt",
files=files
)
# Print the transcribed text
print(response.json()["text"])
MIT License