Repository navigation
feat(ui): add streaming voice chat with LFM3 and SoulX avatar - #1176
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Voice chat app that combines selectable ASR, LFM3-Audio conversation and built-in voices, and SoulX-FlashHead portrait animation. Reply text, selected-voice audio and animation stream through the pipeline without waiting for the complete reply.
The app includes portrait crop preview, voice selection, optional personality prompts, multi-turn conversation history, synchronized playback, replay audio and cancellation. ASR provides the displayed user transcript; LFM3 receives the original recording. Native S2S reply artifacts preserve conversation history, while a separate TTS session supplies the selected voice.
LFM3 conversational voice chat currently supports English only; its multilingual ASR and TTS capabilities do not imply multilingual conversation support. Personality text is forwarded as the conversation system prompt, and changing it starts a new conversation context.
Implementation
voice-chat-avatarto queue incoming text phrases for TTS and feed audio continuously into the avatar. Bounded text/PCM queues provide backpressure and propagate errors and cancellation.speaking-avataralso supports fixed text through the same TTS/avatar pipeline.The example server configuration registers four sessions and explicitly selects SoulX's cuDNN VAE implementation. It requires a cuDNN-enabled build; the documentation explains how to select
ggmlinstead. Different TTS/avatar sample rates require libsoxr.Validation