Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ionic-bond committed Dec 17, 2023
1 parent fec33b4 commit 90b79e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ By default, the URL can be of the form ```twitch.tv/forsen``` and yt-dlp is used
| `--best_of` | 5 | Number of candidates when sampling with non-zero temperature. |
| `--direct_url` | | Set this flag to pass the URL directly to ffmpeg. Otherwise, yt-dlp is used to obtain the stream URL. |
| `--use_faster_whisper` | | Set this flag to use faster_whisper implementation instead of the original OpenAI implementation |
| `--faster_whisper_model_path` | whisper-large-v2-ct2/ | Path to a directory containing a Whisper model in the CTranslate2 format. |
| `--faster_whisper_device` | cuda | Set the device to run faster-whisper on. |
| `--faster_whisper_compute_type` | float16 | Set the quantization type for faster_whisper. See [here](https://opennmt.net/CTranslate2/quantization.html) for more info. |
| `--use_whisper_api` | | Set this flag to use OpenAI Whisper API instead of the original local Whipser. |
| `--whisper_filters` | emoji_filter | Filters apply to whisper results, separated by ",". |
| `--output_timestamps` | | Output the timestamp of the text when outputting the text. |
Expand Down
16 changes: 1 addition & 15 deletions stream_translator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,6 @@
"!pip install -r requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "_mU1b9P6sKyO"
},
"outputs": [],
"source": [
"%cd /content\n",
"!pip install \"faster-whisper @ https://github.com/guillaumekln/faster-whisper/archive/refs/heads/master.tar.gz\"\n",
"!ct2-transformers-converter --model openai/whisper-large-v2 --output_dir whisper-large-v2-ct2 \\\n",
" --copy_files tokenizer.json --quantization float16"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -59,7 +45,7 @@
"source": [
"%cd /content/stream-translator-gpt\n",
"!python3 translator.py https://www.youtube.com/watch?v=r1dytEjbUqo --model large --language ja \\\n",
" --use_faster_whisper --faster_whisper_model_path /content/whisper-large-v2-ct2 \\\n",
" --use_faster_whisper \\\n",
" --gpt_translation_prompt \"Translate from Japanese to Chinese\" --openai_api_key \"\" \\\n",
" --cqhttp_url \"\" --cqhttp_token \"\""
]
Expand Down

0 comments on commit 90b79e4

Please sign in to comment.