Add space sound

master v0.0.2
Tait Hoyem 7 months ago
parent 3e6078b743
commit a2714cb1d1

@ -22,6 +22,6 @@ for (name,length) in nb:
no_ext = name.split(".")[0]
print(f"{name}: {padding}...", end="")
subprocess.run(["sox", name, f"{no_ext}_padd.wav", "pad", "0", f"{padding}"])
subprocess.run(["sox", f"{no_ext}_padd.wav", "-t", "raw", "-r", "{SAMPLE_RATE}", "-b", "{BITS}", "-c", "{CHS}", f"{no_ext}.raw"])
subprocess.run(["sox", f"{no_ext}_padd.wav", "-t", "raw", "-r", f"{SAMPLE_RATE}", "-b", f"{BITS}", "-c", f"{CHS}", f"{no_ext}.raw"])
print("done")

@ -1,8 +1,9 @@
#!/bin/bash
FLAGS="-s 250"
CHARACTER_TTS="a b c d e f g h i j k l m n o p q r s t u v w x y z space"
for letter in {a..z};
for char in ${CHARACTER_TTS};
do
espeak $FLAGS ${letter} -w "${letter}.wav"
espeak $FLAGS ${char} -w "${char}.wav"
done

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save