Skip to content

andrea-marchionni/nethvoice-it-sounds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# get all asterisk sounds text from web pages
wget https://www.asterisksounds.org/it/sounds; for i in $(seq 1 100); do wget https://www.asterisksounds.org/it/sounds?page=$i -O $i ; done

# put all text messages in a file
grep -h '<div class="text-right">        <a href="/it/sounds\|<p class="lead">[[:blank:]]*.*[[:blank:]]*</p>\|class="glyphicon glyphicon-bookmark" aria-hidden="true"></span> ' [0-9]*  | sed 's/<div>        <span class="glyphicon glyphicon-bookmark" aria-hidden="true"><\/span>\([^<]*\)<\/div>/\1%%%/' | sed 's/<div class="text-right">        <a href="[^"]*">\([^<]*\)<\/a>  <\/div>      <\/div>/\1|/' | sed 's/<p class="lead"> *\(.*\)<\/p>/\1|/' | sed "s/&#039;/'/g" | sed ':a;N;$!ba;s/\n/ /g' | sed 's/%%%/\n/g' | sed 's/^ *\| *$//g' | sed 's/[\t ]*|\||[\t ]*/|/g' > text

# get audio files
# jq is required
dnf install -y jq

# get all files
./get_audio_from_google

# get one file
./get_audio_from_google filename

# When you have all files, you can create the release .zip
./create_zip

About

Wavenet generated Asterisk audio files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%