Spaces:
Runtime error
Runtime error
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,62 +1,76 @@
|
|
| 1 |
---
|
| 2 |
-
title: LFM2-Audio Speech-to-Speech
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
license: other
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# LFM2-Audio Speech-to-Speech Chat
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
## Features
|
| 17 |
|
| 18 |
-
-
|
| 19 |
-
- **
|
| 20 |
-
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
## How to Use
|
| 23 |
|
| 24 |
-
1. **
|
| 25 |
-
2. **
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
3. **Generate Response**: Click the button to get the model's response
|
| 29 |
-
4. **Listen & Read**: Hear the audio response and read the text transcription
|
| 30 |
|
| 31 |
-
## Parameters
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
-
## Technical Details
|
| 44 |
|
| 45 |
-
- Model
|
| 46 |
-
-
|
| 47 |
-
-
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
##
|
| 50 |
|
| 51 |
-
|
| 52 |
-
-
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
##
|
| 55 |
|
| 56 |
- [Liquid AI Website](https://www.liquid.ai/)
|
| 57 |
- [GitHub Repository](https://github.com/Liquid4All/liquid-audio/)
|
| 58 |
- [Model on Hugging Face](https://huggingface.co/LiquidAI/LFM2-Audio-1.5B)
|
|
|
|
| 59 |
|
| 60 |
-
## License
|
| 61 |
|
| 62 |
Licensed under the LFM Open License v1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: LFM2-Audio Real-time Speech-to-Speech
|
| 3 |
+
emoji: ποΈ
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
license: other
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# LFM2-Audio Real-time Speech-to-Speech Chat
|
| 13 |
|
| 14 |
+
Real-time WebRTC streaming demo of LFM2-Audio-1.5B, Liquid AI's first end-to-end audio foundation model.
|
| 15 |
|
| 16 |
+
## β¨ Features
|
| 17 |
|
| 18 |
+
- **π΄ Real-time WebRTC streaming** - Instant response with minimal latency
|
| 19 |
+
- **ποΈ Continuous listening** - Natural conversation flow with automatic pause detection
|
| 20 |
+
- **π¬ Interleaved output** - Simultaneous text and audio generation
|
| 21 |
+
- **π Multi-turn memory** - Context-aware conversations
|
| 22 |
+
- **β‘ Low latency** - Optimized for real-time interaction
|
| 23 |
|
| 24 |
+
## π How to Use
|
| 25 |
|
| 26 |
+
1. **Grant microphone access** when prompted by your browser
|
| 27 |
+
2. **Start speaking** - The model listens continuously
|
| 28 |
+
3. **Pause briefly** - The model detects pauses and responds automatically
|
| 29 |
+
4. **Continue conversation** - Build multi-turn dialogues naturally
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
## ποΈ Parameters
|
| 32 |
|
| 33 |
+
### Temperature
|
| 34 |
+
- **0**: Greedy decoding (most deterministic)
|
| 35 |
+
- **1.0**: Default (balanced creativity and coherence)
|
| 36 |
+
- **2.0**: Maximum creativity (more diverse outputs)
|
| 37 |
|
| 38 |
+
### Top-k
|
| 39 |
+
- **0**: No filtering (full vocabulary)
|
| 40 |
+
- **4**: Default (conservative, high quality)
|
| 41 |
+
- **Higher values**: More diverse but potentially less coherent
|
| 42 |
|
| 43 |
+
## ποΈ Technical Details
|
| 44 |
|
| 45 |
+
- **Model**: LFM2-Audio-1.5B
|
| 46 |
+
- **Generation Mode**: Interleaved (optimized for real-time)
|
| 47 |
+
- **Audio Codec**: Mimi (24kHz)
|
| 48 |
+
- **Streaming**: WebRTC via fastrtc
|
| 49 |
+
- **Backend**: PyTorch with CUDA acceleration
|
| 50 |
|
| 51 |
+
## π§ Differences from Standard Demo
|
| 52 |
|
| 53 |
+
This demo uses **fastrtc** for WebRTC streaming, enabling:
|
| 54 |
+
- Continuous audio streaming without manual recording
|
| 55 |
+
- Automatic voice activity detection (VAD)
|
| 56 |
+
- Lower latency through chunked processing
|
| 57 |
+
- More natural conversation flow
|
| 58 |
|
| 59 |
+
## π Resources
|
| 60 |
|
| 61 |
- [Liquid AI Website](https://www.liquid.ai/)
|
| 62 |
- [GitHub Repository](https://github.com/Liquid4All/liquid-audio/)
|
| 63 |
- [Model on Hugging Face](https://huggingface.co/LiquidAI/LFM2-Audio-1.5B)
|
| 64 |
+
- [fastrtc Documentation](https://github.com/freddyaboulton/fastrtc)
|
| 65 |
|
| 66 |
+
## π License
|
| 67 |
|
| 68 |
Licensed under the LFM Open License v1.0
|
| 69 |
+
|
| 70 |
+
## π‘ Tips
|
| 71 |
+
|
| 72 |
+
- Speak clearly and pause briefly between thoughts
|
| 73 |
+
- Use a good quality microphone for best results
|
| 74 |
+
- Adjust temperature for different creativity levels
|
| 75 |
+
- Lower top-k values produce more consistent responses
|
| 76 |
+
- GPU acceleration is recommended for real-time performance
|