I am writing a bash script to convert lyrics to audio clips using espeak. The problem is that espeak only says the first word, rather than the line by line that I'm reading. I tried putting the lines in the file with quotes, but this did not fix the problem.
Here is my bash script:
#!/bin/bash
input="$1"
##input="/path/to/txt/file"
while IFS= read -r line
do
echo "$line"
espeak -k cantonese $line
done < "$input"
Here is the text file line by line:
"Work it"
"Make it"
"Do it"
"Make us"
"Harder"
"Better"
"Faster"
"Stronger"
How can I make espeak say every word?
Please note that every word is said, when I read from a file using the -f option.