This project provides a Python-based tool for audio analysis and text-to-speech conversion using state-of-the-art AI models.
The tool uses Qwen Audio Chat, a multimodal model that can understand and respond to questions about audio content. It supports:
The tool provides a flexible TTS system with multiple fallback options:
pip install -r requirements.txt
The following Python packages are required:
transformers
torch
soundfile
TTS (optional, for XTTS support)
sentencepiece (for SpeechT5)
numpy
# Audio analysis
analyze_audio("path/to/audio.wav", "What instruments are playing in this audio?")
# Text-to-speech
speak("Hello, this is synthesized speech")
speak("Custom voice example", voice="path/to/reference.wav")
speak("Using XTTS model", model_name="coqui/xtts-v2")
All outputs are saved to the output directory:
output/analysis_filename.txtoutput/text_preview.wav4 commits
Python
100.0%
This project provides a Python-based tool for audio analysis and text-to-speech conversion using state-of-the-art AI models.
The tool uses Qwen Audio Chat, a multimodal model that can understand and respond to questions about audio content. It supports:
The tool provides a flexible TTS system with multiple fallback options:
pip install -r requirements.txt
The following Python packages are required:
transformers
torch
soundfile
TTS (optional, for XTTS support)
sentencepiece (for SpeechT5)
numpy
# Audio analysis
analyze_audio("path/to/audio.wav", "What instruments are playing in this audio?")
# Text-to-speech
speak("Hello, this is synthesized speech")
speak("Custom voice example", voice="path/to/reference.wav")
speak("Using XTTS model", model_name="coqui/xtts-v2")
All outputs are saved to the output directory:
output/analysis_filename.txtoutput/text_preview.wav4 commits
Python
100.0%