> ## Documentation Index
> Fetch the complete documentation index at: https://docs.liquid.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Audio car cockpit demo

<Card title="View Source Code" icon="github" href="https://github.com/Liquid4All/cookbook/tree/main/examples/audio-car-cockpit">
  Browse the complete example on GitHub
</Card>

## What's inside?

Combines [LFM2.5-Audio-1.5B](https://huggingface.co/LiquidAI/LFM2.5-Audio-1.5B-GGUF) in TTS and STT modes with [LFM2-1.2B-Tool](https://huggingface.co/LiquidAI/LFM2-1.2B-Tool-GGUF) within a mockup of a car cockpit, letting the user control the car functionalities by voice.

All running locally in real-time.

<video autoPlay muted loop playsInline controls className="w-full aspect-video rounded-xl" src="https://github.com/user-attachments/assets/f9b5a6fd-ed3b-4235-a856-6251441a1ada">
  Your browser does not support the video tag.
</video>

## Key Components

[Llama.cpp](https://github.com/ggml-org/llama.cpp) is used for both models inference, with a custom runner for the audio model. The car cockpit (UI) is vanilla js+html+css, and the communication with the backend is through messages over websocket, like a widely simplified [car CAN bus](https://en.wikipedia.org/wiki/CAN_bus).

## Supported Platforms

<Note>
  **Supported Platforms**

  The following platforms are currently supported:

  * macOS ARM64
  * Ubuntu ARM64
  * Ubuntu x64
</Note>

## Quick Start

1. Setup Python environment:
   ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
   git clone https://github.com/Liquid4All/cookbook.git
   cd cookbook/examples/audio-car-cockpit
   make setup
   ```

2. Optional: If you already have llama-server in your path, you can symlink instead of building it:
   ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
   ln -s $(which llama-server) llama-server
   ```

3. Prepare the audio and tool calling models:
   ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
   make LFM2.5-Audio-1.5B-GGUF LFM2-1.2B-Tool-GGUF
   ```

4. Launch the demo:
   ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
   make -j2 audioserver serve
   ```

## Need help?

<CardGroup cols={1}>
  <Card title="Join our Discord" icon="discord" iconType="brands" href="https://discord.gg/DFU3WQeaYD">
    Connect with the community and ask questions about this example.
  </Card>
</CardGroup>
