Commit Graph
17 Commits
Author SHA1 Message Date
Manu Orsini d108410d23 Default the English model's temperature to 0.3 (#223)
## Motivation

Human evaluations consistently prefer the English model at temperature
**0.3** over the current default **0.7**, and the change is free on
every objective axis we measured.
2026-07-16 14:42:04 +02:00
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 c90fc8ced6 Add french, italian, portuguese, spanish, german (#155)
The french 6 layers variant wasn't included because it's not good enough
yet. Use the `french_24l` variant for now.
2026-04-17 17:52:16 +02:00
nabil-tazi 670e777260 Add int8 dynamic quantization support (#147)
# Add int8 dynamic quantization
 
Closes #7
 
## Summary
 
This PR implements mixed-precision int8 dynamic quantization for
pocket-tts, as requested in issue #7. It adds a `quantize=True` flag to
`TTSModel.load_model()` that reduces runtime memory usage by ~48% and
improves inference speed by ~27% on x86 and up to 23% on ARM, with no
measurable impact on audio quality.
2026-03-24 11:29:14 +01:00
Gabriel de Marmiesse 8443de8e06 Add functions to export and import the model state for a given voice (#129) 2026-02-16 15:37:00 +01:00
Gabriel de Marmiesse aca7dc8db6 Remove cudagraph reference (#123) 2026-02-12 16:11:13 +01:00
Mukul bisht 431878c0db Adding possibility to read the input text from stdin in the CLI (#110) 2026-02-12 11:32:42 +01:00
Václav Volhejn 28b8244428 Improve consistency in variant -> config rename (#87)
Small follow-up on #59
2026-01-27 08:55:34 +00:00
teddybear082 2b51649a65 Basic changes to allow loading of local model files (#59)
-modify main,py to not hardcode using DEFAULT_VARIANT

-allow submission of path string to path of variant.yaml file saved in
custom directory in lieu of model variant identifier in CLI to use when
loading model

-addresses #57
2026-01-27 09:42:35 +01:00
thataboyandVáclav Volhejn edec7f8790 Add .safetensors save/load to get_state_for_audio_prompt (#69)
Quality of life improvement to save user voice embedding as a
.safetensors file that can be loaded for subsequent use, achieving the
same efficiency as the predefined voices, all via the existing
get_state_for_audio_prompt function.

---------

Co-authored-by: Václav Volhejn <8401624+vvolhejn@users.noreply.github.com>
2026-01-26 10:36:27 +01:00
Saleem DjimaandVáclav Volhejn 4ec89acf95 Feat/add chunk size control arg (#56)
This pull request addresses issue #38 

**Changes included:**

- Added a `max_tokens` parameter to the typer cli for the `generate`
command, allowing user to set a default number of tokens per chunk.
- Introduced a default variable `MAX_TOKEN_PER_CHUNK` to centralize the
default value.
- Fixed a tokenization issue by inserting a comma, allowing the model to
correctly read each chunk as intended rather than treating one chunk as
a single sentence.

**Future improvement suggestion :**

- Consider enhancing the `split_into_best_sentences` function using
regex to split text more accurately without modifying it, which would
improve clarity and maintainability.

---------

Co-authored-by: Václav Volhejn <8401624+vvolhejn@users.noreply.github.com>
2026-01-21 11:54:53 +01:00
Václav Volhejn 2d62797f28 Fix temp file issue on windows (I hope) (#72)
Thank you @Arihant25, re-integrating the changes from your PR because
Gabriel is not here to do his fix.

The plan was to get rid of the temporary file altogether and pass a
file-like object, but in the meantime let's at least have something that
works.
2026-01-21 10:54:03 +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
Gabriel de Marmiesse c4960e6fd9 Add rules and some other misc notes (#35) 2026-01-15 21:27:58 +01:00
Gabriel de Marmiesse 366aa68c23 Change voices available without voice cloning (#12) 2026-01-13 11:06:23 +01:00
gabrieldemarmiesse f5fa328a58 Copy the files in the new repo for public release 2026-01-12 11:25:16 +01:00