Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Ultravox (speech-to-speech translation) #4891

Open
Hello-World-Traveler opened this issue Feb 24, 2025 · 2 comments
Open

Add support for Ultravox (speech-to-speech translation) #4891

Hello-World-Traveler opened this issue Feb 24, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@Hello-World-Traveler
Copy link

Is your feature request related to a problem? Please describe.
No it isn't

Describe the solution you'd like
"Think of the model as an LLM that can also hear and understand speech. As such, it can be used as a voice agent, and also to do speech-to-speech translation, analysis of spoken audio,"

This feature would expand Localai to the next level. Once added, Big-agi could add support so you won't have to have a calling back-end like they do.

https://huggingface.co/fixie-ai/ultravox-v0_5-llama-3_1-8b
https://github.com/vllm-project/vllm/blob/661a34fd4fdd700a29b2db758e23e4e243e7ff18/examples/offline_inference_audio_language.py#L23

Describe alternatives you've considered
Nothing

Additional context
"Ultravox is a multimodal model that can consume both speech and text as input (e.g., a text system prompt and voice user message). The input to the model is given as a text prompt with a special <|audio|> pseudo-token, and the model processor will replace this magic token with embeddings derived from the input audio. Using the merged embeddings as input, the model will then generate output text as usual.

In a future revision of Ultravox, we plan to expand the token vocabulary to support generation of semantic and acoustic audio tokens, which can then be fed to a vocoder to produce voice output. No preference tuning has been applied to this revision of the model."

Thank you for building such an easy and awesome project!

@Hello-World-Traveler Hello-World-Traveler added the enhancement New feature or request label Feb 24, 2025
@mudler
Copy link
Owner

mudler commented Feb 24, 2025

If it's supported by vLLM it would work as well here. We do already support audio, video and image processing with vLLM.

@Hello-World-Traveler
Copy link
Author

what would be the possibility it can it be added to the repository by next release?

If you need me to test this with Local-ai, link the file to me and I will upload it to the server with model and restart to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants