Bekijk de volledige versie : Howto Holy Rosary

08-10-2009, 02:40
Somebody asked how to use text-speech on the Asus.
For the feast of the Rosary of Our blessed Virgin Mary I give this example.
(The box plays a complete rosary)

Soundcard fully installed

First you have to install the texts:


mkdir HolyRosary
cd HolyRosary
touch saystat
mkdir SignCross
touch SignCross/SignCross.txt
cat>SignCross/SignCross.txt <<SignCrossHere
In the name of the Father and of the Son and of the Holy Spirit

mkdir Creed
touch Creed/Creed.txt
cat >Creed/Creed.txt <<CreedHere
I believe in God the Father almighty creator of heaven and earth
I believe in Jesus Christ his only Son our Lord
He was conceived by the power of the Holy Spirit and born of the Virgin Mary
He suffered under Pontius Pilate was crucified died and was buried
He descended to the dead On the third day he rose again
He ascended into heaven and is seated at the right hand of the Father
He will come again to judge the living and the dead.
I believe in the Holy Spirit the holy catholic Church the communion of saints
the forgiveness of sins the resurrection of the body and the life everlasting

mkdir OurFather
touch OurFather/OurFather.txt
cat >OurFather/OurFather.txt <<OurFatherHere
Our Father
who art in heaven
hallowed be thy name
thy kingdom come
thy will be done
on earth as it is in heaven
Give us this day our daily bread
and forgive us our trespasses
as we forgive those who trespass against us
and lead us not into temptation
but deliver us from evil

mkdir HailMary
touch HailMary/HailMary.txt
cat >HailMary/HailMary.txt <<HailMaryHere
Hail Mary full of grace the Lord is with Thee
Blessed art thou among women
and blessed is the fruit of thy womb Jesus
Holy Mary Mother of God
pray for us sinners
now and at the hour of our death amen

mkdir Glory
touch Glory/Glory.txt
cat >Glory/Glory.txt <<GloryHere
Glory to the Father and to the Son and to the Holy Spirit
As it was in the beginning is now and will be for ever

mkdir OhMyJesus
touch OhMyJesus/OhMyJesus.txt
cat >OhMyJesus/OhMyJesus.txt <<OhMyJesusHere
O my Jesus forgive us our sins
save us from the fires of hell
lead all souls to Heaven
especially those who have the most need of your mercy

mkdir HailHoly
touch HailHoly/HailHoly.txt
cat >HailHoly/HailHoly.txt <<HailHolyHere
Hail holy queen mother of mercy
our life our sweetness and our hope
To you we cry poor banished children of Eve
to you we send up our sighs mourning and weeping in this valley of tears
Turn then O most gracious advocate your eyes of mercy toward us
and after this our exile show unto us the blessed fruit of your womb Jesus
O clement O loving O sweet virgin Mary

mkdir RespA
touch RespA/RespA.txt
cat > RespA/RespA.txt <<RespAHere
Pray for us O holy Mother of God

mkdir RespB
touch RespB/RespB.txt
cat >RespB/RespV.txt <<RespBHere
that we may be made worthy of the promises of Christ

mkdir Prayer
touch Prayer/Prayer.txt
cat >Prayer/Prayer.txt <<PrayerHere
Let us pray
O God
whose only begotten Son by his life death and resurrection has purchased for us the rewards of eternal life
grant we beseech you that meditating upon these mysteries of the most holy rosary of the Blessed Virgin Mary
we may imitate what they contain and obtain what they promise
Through the same Christ our Lord

mkdir Ten
touch Ten/Ten.txt
cat >Ten/Ten.txt <<TenHere
"OurFather.txt OF OurFather"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"Glory.txt GL Glory"
"OhMyJesus.txt OJ OhMyJesus"

mkdir Glorious
touch Glorious/Glorious.txt
cat >Glorious/Glorious.txt <<GloriousHere
"SignCross.txt SC SignCross"
"Creed.txt CR Creed"
"OurFather.txt OF OurFather"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"HailMary.txt HM HailMary"
"Glory.txt GL Glory"
First glorious mystery
The Resurrection of Our Lord
Jesus rises from the dead
He said to them
Do not be amazed You seek Jesus of Nazareth the crucified
He has been raised he is not here
Behold the place where they laid him
But go and tell his disciples and Peter
He is going before you to Galilee
there you will see him
as he told you
Mark 16 6
"Ten.txt TE Ten"
Second glorious mystery
The Ascension of Our Lord
Jesus ascends into heaven
While they were looking intently at the sky as he was going
suddenly two men dressed in white garments stood beside them
They said Men of Galilee why are you standing there looking at the sky?
This Jesus who has been taken up from you into heaven will return in the same way as you have seen him going into heaven
Acts 1 10
"Ten.txt TE Ten"
Third glorious mystery
The Descent of the Holy Ghost upon the Apostles
The Holy Spirit comes to the apostles and the Blessed Mother
Wisdom Love of God Zeal Fortitude
When the time for Pentecost was fulfilled they were all in one place together
And suddenly there came from the sky a noise like a strong driving wind
and it filled the entire house in which they were
Then there appeared to them tongues as of fire which parted and came to rest on each one of them
Acts 2 1
"Ten.txt TE Ten"
Fourth glorious mystery
The Assumption of the Blessed Virgin Mary into Heaven
The Mother of Jesus is taken into heaven
Eternal Happiness Grace of a Happy Death
As an apple tree among the trees of the woods
so is my lover among men
I delight to rest in his shadow
and his fruit is sweet to my mouth
He brings me into the banquet hall
and his emblem over me is love
Strengthen me with raisin cakes
refresh me with apples
for I am faint with love
His left hand is under my head
and his right arm embraces me
Song of Songs 2 3
"Ten.txt TE Ten"
Fifth glorious mystery
The Coronation of Our Lady as Queen of Heaven and Earth
Mary is crowned queen of heaven and earth
Devotion to Mary and Final Perseverance
Trust in Marys Intercession
And Mary said
My soul proclaims the greatness of the Lord
my spirit rejoices in God my savior
For he has looked upon his handmaids lowliness
behold from now on will all ages call me blessed
Luke 1 46
"Ten.txt TE Ten"
"HailHoly.txt HH HailHoly"
"RespA.txt RA RespA"
"RespB.txt RB RespB"
"Prayer.txt PR Prayer"
"SignCross.txt SC SignCross"


vim install_texts.sh

Make the shell script executable and execute it with

chmod a+x install_texts.sh
sh install_texts.sh

Go into the directory "HolyRosary" and create the Perl-Script "say.pl"

cd HolyRosary
vim say.pl

The content is:

#!/opt/bin/perl -w
use strict;
use warnings;

my $rec='';
my $file=shift @ARGV || die "no parms";
if($file eq 'rec')
$file=shift @ARGV || die "no file given!";
my $fileto=shift @ARGV || die "no destination given!";
my $workdir=shift @ARGV || die "no workdir!";
my $line;
my $res;
my $i=0;
my @tarr;
my $touch='saystat';
open (SPEECH,"<$workdir/$file") || die "file not found";
if($rec eq 'rec')
@tarr=split(/ /,$line);
if (!(stat($tarr[2]))[9] || (stat($touch))[9] gt (stat($tarr[2]))[9])
print $tarr[2];
`perl say.pl rec $line`;
print $line."----\n";
$res=`wget 'http://vozme.com/text2voice.php?lang=en&gn=fm&text=$line' -q -O - | grep http://vozme.com/speech`;
print $res."\n";
`wget $1 -q -O $workdir/f$fileto$i.mp3`;
$res=`wget 'http://vozme.com/text2voice.php?lang=en&gn=ml&text=$line' -q -O - | grep http://vozme.com/speech`;
`wget $1 -q -O $workdir/m$fileto$i.mp3`;
sleep ($line);
`perl say.pl $1`;
`mpg123 $workdir/f$fileto$i.mp3`;
# `mpg123 $workdir/m$fileto$i.mp3`;

Now you start recursively downloading the mp3 from an online text-speech website.

touch saystat
perl say.pl rec Glorious.txt GL Glorious

Once the mp3 are recorded you can start the rosary with:

perl say.pl Glorious.txt GL Glorious