-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathai
More file actions
16 lines (14 loc) · 809 Bytes
/
Copy pathai
File metadata and controls
16 lines (14 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
str="'$*'"
# Replace $AI_PATH with the full path to the PHP file.
php "$AI_PATH/Speaking_AI.php" "$str";
# Put in in your local bin folder: /usr/local/bin/ai;
# Customize the AI's pitch, speaking rate, volume, voice, language:
# ai --voices [to see all voices available]
# ai [chat] "$str" [pitch] 1 [speakingRate] 1 [volume] 0.5 [voice] 'en-US-Studio-M'
# [chat] Leave it as "$str" to pass the command through. ( do not modify )
# [pitch] 0.9 / 1 / 1.3 / 2 ( default value: 1 )
# [speakingRate] 0.8 / 1 / 1.2 / 2.3 ( default value: 1 )
# [volume] 0.2 / 0.4 / 0.6 / 1 / 0 ( will mute the audio output )
# [voice] "en-US-Studio-M" Choose one of the voices found with --voices
# [filename] "mp3_file_path" An optional path of an MP3 file with the spoken words.