File size: 1,834 Bytes
ca7a45e
 
91fcfb1
ca7a45e
 
 
 
91fcfb1
ca7a45e
91fcfb1
 
ca7a45e
91fcfb1
 
ca7a45e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76


---
title: LinaCodec Audio Tool
emoji: 🎵
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
---

# 🎵 LinaCodec Audio Tool

A Gradio web interface for **LinaCodec**, a neural audio codec for high-quality speech compression and voice conversion.

## Features

### 🔄 Encode & Decode
- Upload audio files and compress them into speech tokens
- Decode tokens back to 48kHz audio
- Demonstrates codec's compression and reconstruction quality

### 🎭 Voice Conversion
- Transfer timbre/style from one speaker to another
- Keep content from source audio
- Apply voice characteristics from reference audio

## How to Use

1. **Encode & Decode Tab**:
   - Upload an audio file or record using your microphone
   - Click "Encode & Decode"
   - Listen to the reconstructed audio

2. **Voice Conversion Tab**:
   - Upload source audio (the content you want)
   - Upload reference audio (the voice style you want)
   - Click "Convert Voice"
   - Listen to the converted result

## Technical Details

- **Model**: [YatharthS/LinaCodec](https://huggingface.co/YatharthS/LinaCodec)
- **Output Sample Rate**: 48 kHz
- **Input Formats**: WAV, MP3, and other common audio formats
- **Framework**: PyTorch, Gradio

## Model Information

LinaCodec is a neural audio codec designed for high-quality speech compression and voice conversion. It encodes audio into discrete speech tokens and a global embedding, enabling efficient storage and manipulation of speech signals.

## Local Development

```bash
# Clone the repository
git clone  https://huggingface.co/spaces/humair025/LinaCodec/

# Install dependencies
pip install -r requirements.txt

# Run the app
python app.py
```

## Citation

If you use LinaCodec in your research, please cite the original work.

## License

MIT License