Text-to-Speech
KimiAudio
Safetensors
English
Chinese
audio
audio-language-model
speech-recognition
audio-understanding
audio-generation
chat
custom_code
Instructions to use moonshotai/Kimi-Audio-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KimiAudio
How to use moonshotai/Kimi-Audio-7B-Instruct with KimiAudio:
# Example usage for KimiAudio # pip install git+https://github.com/MoonshotAI/Kimi-Audio.git from kimia_infer.api.kimia import KimiAudio model = KimiAudio(model_path="moonshotai/Kimi-Audio-7B-Instruct", load_detokenizer=True) sampling_params = { "audio_temperature": 0.8, "audio_top_k": 10, "text_temperature": 0.0, "text_top_k": 5, } # For ASR asr_audio = "asr_example.wav" messages_asr = [ {"role": "user", "message_type": "text", "content": "Please transcribe the following audio:"}, {"role": "user", "message_type": "audio", "content": asr_audio} ] _, text = model.generate(messages_asr, **sampling_params, output_type="text") print(text) # For Q&A qa_audio = "qa_example.wav" messages_conv = [{"role": "user", "message_type": "audio", "content": qa_audio}] wav, text = model.generate(messages_conv, **sampling_params, output_type="both") sf.write("output_audio.wav", wav.cpu().view(-1).numpy(), 24000) print(text) - Notebooks
- Google Colab
- Kaggle
Update correct task tag
#1
by reach-vb - opened
README.md
CHANGED
|
@@ -8,10 +8,10 @@ tags:
|
|
| 8 |
- audio-language-model
|
| 9 |
- speech-recognition
|
| 10 |
- audio-understanding
|
| 11 |
-
- text-to-speech
|
| 12 |
- audio-generation
|
| 13 |
- chat
|
| 14 |
- kimi-audio
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# Kimi-Audio
|
|
@@ -158,4 +158,4 @@ If you find Kimi-Audio useful in your research or applications, please cite our
|
|
| 158 |
|
| 159 |
## License
|
| 160 |
|
| 161 |
-
The model is based and modified from [Qwen 2.5-7B](https://github.com/QwenLM/Qwen2.5). Code derived from Qwen2.5-7B is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). Other parts of the code are licensed under the [MIT License](https://opensource.org/licenses/MIT).
|
|
|
|
| 8 |
- audio-language-model
|
| 9 |
- speech-recognition
|
| 10 |
- audio-understanding
|
|
|
|
| 11 |
- audio-generation
|
| 12 |
- chat
|
| 13 |
- kimi-audio
|
| 14 |
+
pipeline_tag: any-to-any
|
| 15 |
---
|
| 16 |
|
| 17 |
# Kimi-Audio
|
|
|
|
| 158 |
|
| 159 |
## License
|
| 160 |
|
| 161 |
+
The model is based and modified from [Qwen 2.5-7B](https://github.com/QwenLM/Qwen2.5). Code derived from Qwen2.5-7B is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). Other parts of the code are licensed under the [MIT License](https://opensource.org/licenses/MIT).
|