Commit Graph
9 Commits
Author SHA1 Message Date
Gabriel de Marmiesse 7db278ee57 Add default voice for each language (#180)
Fix https://github.com/kyutai-labs/pocket-tts/issues/166
2026-05-04 15:35:22 +02:00
Gabriel de Marmiesse 5304da453b Add the demo (#163) 2026-04-20 15:55:33 +02:00
Gabriel de Marmiesse 25e1b673cd Added code to generate the default voices (#144) 2026-03-12 18:12:47 +01:00
thataboy 9878cd0fd2 Add latencyHint when creating AudioContext (test frontend) (#124) 2026-02-16 15:42:00 +01:00
Václav Volhejn 77cc74a443 Clarifications regarding voices + fix missing @classmethod (#86) 2026-01-26 12:46:44 +01:00
bedd1c4098 feat(voice/clone): support MP3 and other audio formats for reference voices (#20)
## Summary
- Adds support for MP3, FLAC, OGG, and other audio formats when
uploading reference voices for cloning
- Replace WAV-only `audio_read()` with a `soundfile`-based
implementation
- Update web UI file picker to accept multiple audio formats

## Changes
- `pocket_tts/data/audio.py`: Use `soundfile` library instead of
Python's `wave` module
- `pocket_tts/main.py`: Preserve original file extension in temp files
for format detection
- `pocket_tts/main.py`: Add missing `truncate=True` to CLI generate
command
- `pocket_tts/static/index.html`: Update file input to accept
`.wav,.mp3,.flac,.ogg,.m4a,audio/*`
- `pyproject.toml`: Add `soundfile>=0.12.0` dependency

## Tested
- [x] Upload a WAV file as reference voice and generate speech
- [x] Upload an MP3 file as reference voice and generate speech
- [x] Upload a FLAC file as reference voice and generate speech
- [x] Verify CLI `--voice` option works with MP3 files

---------

Co-authored-by: Gabriel de Marmiesse <gabrieldemarmiesse@gmail.com>
Co-authored-by: Václav Volhejn <8401624+vvolhejn@users.noreply.github.com>
2026-01-20 10:12:50 +01:00
gabrieldemarmiesse 424674fa3d Fix html 2026-01-13 11:30:33 +01:00
Gabriel de Marmiesse aab9443122 Give priority to the wav upload in the html page (#9) 2026-01-12 15:02:14 +01:00
gabrieldemarmiesse f5fa328a58 Copy the files in the new repo for public release 2026-01-12 11:25:16 +01:00