Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

talk and talk-llama: Pass text_to_speak as a file #1865

Merged
merged 11 commits into from
Feb 24, 2024

Commits on Feb 24, 2024

  1. talk-llama: pass file instead of arg

    it is too hard to quote text in a portable way
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    df26676 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83d48ee View commit details
    Browse the repository at this point in the history
  3. talk-llama: let eleven-labs.py accept options

    Options: -v voice, -s savefile, -p (--play)
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    766c8cb View commit details
    Browse the repository at this point in the history
  4. talk-llama: check installed commands in "speak"

    Pass "-q" to eleven-labs.py to skip checking whether elevenlabs is installed
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    f5ec91c View commit details
    Browse the repository at this point in the history
  5. talk-llama: pass voice_id again

    in order to sync talk with talk-llama
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    c72857b View commit details
    Browse the repository at this point in the history
  6. talk: sync with talk-llama

    Passing text_to_speak as a file is safer and more portable
    cf. https://stackoverflow.com/a/59036879/45375
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    6584e63 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fd8ee90 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    650a966 View commit details
    Browse the repository at this point in the history
  9. 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
    ```
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    458347b View commit details
    Browse the repository at this point in the history
  10. examples: add speak_with_file()

    as suggested in the review
    tamo committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    4e8cce7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0e4977a View commit details
    Browse the repository at this point in the history