Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/web/audio-webgpu-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "LFM2.5-Audio browser demo with WebGPU"
---

<Card title="View Source Code" icon="github" href="https://github.com/Liquid4All/cookbook/tree/main/examples/audio-webgpu-demo">
Browse the complete example on GitHub
<Card title="View Source Code" icon="code" href="https://huggingface.co/spaces/LiquidAI/LFM2.5-Audio-1.5B-transformers-js/tree/main">
Browse the complete example on Hugging Face
</Card>

This example showcases the **LFM2.5-Audio-1.5B** model running entirely within a web browser using WebGPU and ONNX Runtime Web technology. The demo provides three powerful audio processing modes: automatic speech recognition, text-to-speech synthesis, and interleaved conversations.
Expand All @@ -16,14 +16,14 @@ The demo provides three primary capabilities powered by LFM2.5-Audio-1.5B:
- **TTS (Text-to-Speech)**: Transform written text into natural-sounding audio output
- **Interleaved Mode**: Enable mixed conversations combining both audio and text inputs

All processing happens locally in your browser - no data is sent to external servers.
All processing happens locally in your browser - no data is sent to external servers. You can also try the [deployed version on Hugging Face Spaces](https://huggingface.co/spaces/LiquidAI/LFM2.5-Audio-1.5B-transformers-js) with zero setup.

## Quick Start

1. Clone the repository
```bash
git clone https://github.com/Liquid4All/cookbook.git
cd cookbook/examples/audio-webgpu-demo
git clone https://huggingface.co/spaces/LiquidAI/LFM2.5-Audio-1.5B-transformers-js/
cd LFM2.5-Audio-1.5B-transformers-js
```

2. Verify you have npm installed on your system
Expand Down