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>
This commit is contained in:
co-authored by
Václav Volhejn
parent
bfbaf80437
commit
edec7f8790
@@ -57,8 +57,12 @@ pocket-tts generate --voice "hf://kyutai/tts-voices/jessica-jian/casual.wav"
|
||||
|
||||
# Use local voice file
|
||||
pocket-tts generate --voice "./my_voice.wav"
|
||||
|
||||
# Use a safetensors file (such as one created using `pocket-tts export-voice`)
|
||||
pocket-tts generate --voice "./my_voice.safetensors"
|
||||
```
|
||||
|
||||
|
||||
### Quality Tuning
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user