Initial release

This commit is contained in:
civ
2026-08-16 19:09:33 +07:00
commit d1eb4c640a
2109 changed files with 499273 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# Call the omnivoice OpenAI-compatible TTS server.
# Default response_format is pcm : audio streams chunked as it is generated.
host="${1:-127.0.0.1}"
port="${2:-8080}"
# Streaming pcm, piped straight into a player as it arrives.
# s16le mono 24 kHz. ffplay reads the raw stream from stdin.
curl -s -X POST "http://${host}:${port}/v1/audio/speech" \
-H "Content-Type: application/json" \
-d '{"input":"The quick brown fox jumps over the lazy dog."}' \
| ffplay -f s16le -ar 24000 -ch_layout mono -nodisp -autoexit -i -
# One-shot wav written to a file.
curl -s -X POST "http://${host}:${port}/v1/audio/speech" \
-H "Content-Type: application/json" \
-d '{"input":"This one is written to a file.","response_format":"wav"}' \
--output out.wav
echo "wrote out.wav"
+13
View File
@@ -0,0 +1,13 @@
@echo off
set PATH=%~dp0..\build\Release;%PATH%
omnivoice-tts.exe ^
--model ..\models\omnivoice-base-Q8_0.gguf ^
--codec ..\models\omnivoice-tokenizer-Q8_0.gguf ^
--ref-rvq freeman.rvq ^
--ref-text freeman.txt ^
--lang English ^
-o clone.wav < prompt.txt
pause
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
set -eu
../app/omnivoice-tts \
--model ../models/omnivoice-base-Q4_K_M.gguf \
--codec ../models/omnivoice-tokenizer-Q4_K_M.gguf \
--ref-rvq freeman.rvq \
--ref-text freeman.txt \
--lang Russian \
-o clone.wav < prompt.txt
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
If you go into different cultures, they have different concepts of creation. They have their own creation story and what an afterlife is. Where you go, what you do, who you're going to be with. People say, well...
+1
View File
@@ -0,0 +1 @@
Здесь ты не турист...- - Ты приезжаешь в гости, в дом,.. где тебя встречают по-настоящему....
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Start the omnivoice OpenAI-compatible TTS server.
./build/tts-server \
--model models/omnivoice-base-Q8_0.gguf \
--codec models/omnivoice-tokenizer-F32.gguf \
--host 127.0.0.1 --port 8080 --lang None
+12
View File
@@ -0,0 +1,12 @@
@echo off
set PATH=%~dp0..\build\Release;%PATH%
omnivoice-tts.exe ^
--model ..\models\omnivoice-base-Q8_0.gguf ^
--codec ..\models\omnivoice-tokenizer-Q8_0.gguf ^
--instruct "male, young adult, moderate pitch" ^
--lang English ^
-o tts.wav < prompt.txt
pause
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -eu
../app/omnivoice-tts \
--model ../models/omnivoice-base-Q4_K_M.gguf \
--codec ../models/omnivoice-tokenizer-Q4_K_M.gguf \
--instruct "female, elderly, low pitch, russian accent" \
--lang Russian \
-o tts.wav < prompt.txt