Score:0

Pico2wave read a file

jp flag
abc

pico2wave
Wish to input a text file into pico2wave.

Something like this ...

pico2wave 'read a file'

My entire code

sudo apt update &&

dependencies=(calibre sox libttspico-utils)
for i in ${dependencies[@]}; do sudo apt install $i -y; done;

Name="Why-Did-John-Nash-Stop-His-Medication"
Address="https://www.researchgate.net/profile/Peter-Weiden/publication/7757848_Why_Did_John_Nash_Stop_His_Medication/links/5dff8196299bf10bc370696a/Why-Did-John-Nash-Stop-His-Medication.pdf"

wget --header="User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/600.1.17 (KHTML, like Gecko) Version/8.0 Safari/600.1.17" \
    $Address

ebook-convert $Name.pdf \
              $Name.txt

cat $Name.txt

pico2wave --lang=en-GB --wave=$Name.wav <  $Name.txt

play $Name.wav
uz flag
Jos
Have you tried `cat Why-Did-John-Nash-Stop-His-Medication.txt | pico2wave --lang=en_GB --wave=Why-Did-John-Nash-Stop-His-Medication.wav`?
abc avatar
jp flag
abc
Cannot put Text (-102): invalid argument supplied
uz flag
Jos
Does your `txt` file contains non-ASCII characters?
abc avatar
jp flag
abc
grep --color='auto' -P -n "[\x80-\xFF]" Why-Did-John-Nash-Stop-His-Medication.txt
abc avatar
jp flag
abc
perl -i.bak -pe 's/[^[:ascii:]]//g' Why-Did-John-Nash-Stop-His-Medication.txt
abc avatar
jp flag
abc
Not now. Still same output: Cannot put Text (-102): invalid argument supplied
uz flag
Jos
Oh, that is a [known bug](https://bugs.launchpad.net/ubuntu/+source/svox/+bug/1468771).
Score:0
jp flag
abc

Bug : 2015 (8 year old bug)

enter image description here

Bug #1468771

https://bugs.launchpad.net/ubuntu/+source/svox/+bug/1468771]

enter image description here

Score:0
jp flag
abc

Dissemble file, Cleanup Grammar

sudo apt update &&

dependencies=(calibre sox libttspico-utils)
for i in ${dependencies[@]}; do sudo apt install $i -y; done;


Name="Why-Did-John-Nash-Stop-His-Medication"

Address="https://www.researchgate.net/profile/Peter-Weiden/publication/7757848_Why_Did_John_Nash_Stop_His_Medication/links/5dff8196299bf10bc370696a/Why-Did-John-Nash-Stop-His-Medication.pdf"


wget --header="User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/600.1.17 (KHTML, like Gecko) Version/8.0 Safari/600.1.17" \
    $Address

ebook-convert $Name.pdf \
              $Name.txt


while IFS= read -r Line;
 do

  clear

  echo "$Line" > file.tmp;

  aspell -c file.tmp;

  diction --quiet file.tmp;

  String=$(cat file.tmp)

  clear

  echo "$String"

  pico2wave --lang=en-GB --wave=temp.wav "$String";

  aplay --quiet temp.wav

  clear

 done < "$Name.txt"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.