whisper.cpp/examples
Tamotsu Takahashi f18738f247
talk, talk-llama : pass text_to_speak as a file (#1865)
* talk-llama: pass file instead of arg

it is too hard to quote text in a portable way

* talk-llama: pass heard_ok as a file

* talk-llama: let eleven-labs.py accept options

Options: -v voice, -s savefile, -p (--play)

* talk-llama: check installed commands in "speak"

Pass "-q" to eleven-labs.py to skip checking whether elevenlabs is installed

* talk-llama: pass voice_id again

in order to sync talk with talk-llama

* talk: sync with talk-llama

Passing text_to_speak as a file is safer and more portable
cf. https://stackoverflow.com/a/59036879/45375

* talk and talk-llama: get all installed voices in speak.ps1

* talk and talk-llama: get voices from api

* talk and talk-llama: add more options to eleven-labs.py

and remove DEFAULT_VOICE because it is deprecated (https://www.reddit.com/r/ElevenLabs/comments/1830abt/what_happened_to_bella/)

```
usage: eleven-labs.py [-q] [-l] [-h] [-n NAME | -v NUMBER] [-f KEY=VAL] [-s FILE | -p] [TEXTFILE]

options:
  -q, --quick           skip checking the required library

action:
  TEXTFILE              read the text file (default: stdin)
  -l, --list            show the list of voices and exit
  -h, --help            show this help and exit

voice selection:
  -n NAME, --name NAME  get a voice object by name (default: Arnold)
  -v NUMBER, --voice NUMBER
                        get a voice object by number (see --list)
  -f KEY=VAL, --filter KEY=VAL
                        filter voices by labels (default: "use case=narration")
                        this option can be used multiple times
                        filtering will be disabled if the first -f has no "=" (e.g. -f "any")

output:
  -s FILE, --save FILE  save the TTS to a file (default: audio.mp3)
  -p, --play            play the TTS with ffplay
```

* examples: add speak_with_file()

as suggested in the review

* talk and talk-llama: ignore to_speak.txt
2024-02-24 09:24:47 +02:00
..
addon.node examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
bench examples : initialize context params properly (#1852) 2024-02-11 16:39:12 +02:00
bench.wasm whisper : add support for large v3 (#1444) 2023-11-07 15:30:18 +02:00
command examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
command.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
lsp examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
main main : fix file existence check in main.cpp (#1889) 2024-02-22 15:01:08 +02:00
python examples : add python example for transcription (#1744) 2024-01-13 19:37:18 +02:00
quantize quantize : fix load vocab crash when len is 128 (#1160) 2023-08-06 11:04:42 +03:00
server examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
stream examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
stream.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
sycl whisper : add SYCL support (#1863) 2024-02-23 09:22:24 +02:00
talk talk, talk-llama : pass text_to_speak as a file (#1865) 2024-02-24 09:24:47 +02:00
talk-llama talk, talk-llama : pass text_to_speak as a file (#1865) 2024-02-24 09:24:47 +02:00
talk.wasm examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
wchess examples : initialize context params properly (#1852) 2024-02-11 16:39:12 +02:00
whisper.android ggml : 32-bit arm compat (#1891) 2024-02-22 18:31:40 +02:00
whisper.android.java examples : add whisper.android.java for compatibility with older Android versions using Java (#1382) 2023-11-12 18:31:58 +02:00
whisper.nvim examples : vim plugin and LSP server (#1144) 2023-08-27 21:35:06 +03:00
whisper.objc docs : make model options / model install methods clearer (#1806) 2024-01-26 17:39:54 +02:00
whisper.swiftui whisper.swiftui : add .gitignore 2024-01-04 15:00:27 +02:00
whisper.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
CMakeLists.txt whisper : add SYCL support (#1863) 2024-02-23 09:22:24 +02:00
common-ggml.cpp sync : llama.cpp (ggml/0) 2024-02-22 15:12:36 +02:00
common-ggml.h whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
common-sdl.cpp sdl : fix audio callback (#1523) 2023-11-20 13:16:38 +02:00
common-sdl.h sdl : fix audio callback (#1523) 2023-11-20 13:16:38 +02:00
common.cpp talk, talk-llama : pass text_to_speak as a file (#1865) 2024-02-24 09:24:47 +02:00
common.h talk, talk-llama : pass text_to_speak as a file (#1865) 2024-02-24 09:24:47 +02:00
dr_wav.h refactoring : move main + stream in examples + other stuff 2022-10-25 20:53:48 +03:00
generate-karaoke.sh minor : add comment for using "generate_karaoke.sh" 2022-11-26 10:22:42 +02:00
grammar-parser.cpp whisper : add grammar-based sampling (#1229) 2023-11-13 10:51:34 +02:00
grammar-parser.h whisper : add grammar-based sampling (#1229) 2023-11-13 10:51:34 +02:00
helpers.js wchess : whisper assisted chess (#1595) 2023-12-14 15:58:26 +02:00
json.hpp examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
livestream.sh whisper : make large version explicit + fix data size units (#1493) 2023-11-15 19:42:25 +02:00
twitch.sh whisper : make large version explicit + fix data size units (#1493) 2023-11-15 19:42:25 +02:00
yt-wsp.sh yt-wsp.sh : print help on empty args 2023-02-18 09:42:31 +02:00