Re: [PD] text to sound

2012-06-12 Thread Simon Wise

On 12/06/12 04:29, Andrew Faraday wrote:

PDF's are a much more complicated file format, I don't know how you'd go
about extracting the text content from them to feed the text-to-music
algorithm.


try pdftotext, get it from debian pkgs  poppler-utils  or  xpdf-utils


Simon

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-06-11 00:59, FernandoG wrote:
 Hi, i am developing a proyect where the main idea is transform text
 data to sound. Time ago i was experimenting with the concept of
 devices as files in linux where you can read diferent files, like
 pdf as sound redirecting files to standar output ( by example in
 bash you can do cat /dev/hda1  /dev/audio to hear the sound of
 harddisc data) Then i am looking for similar procedures using PD,
 anybody out there know about a way to transform by explame a pdf or
 plain text into sound output?

do you mean this?

[read iDoc.pdf 0 0 1 2(
|
[readsf~]


fgamdrs
Ihanens
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/VmUMACgkQkX2Xpv6ydvRrcwCg9Vyh1c8CncI6jtJLBIifTJHE
DycAoLvf1s2TYvm6PzR32RO5wePqlZl+
=9JAX
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Bryan Jurish
there are at least 2 pd interfaces to the flite tts library out there, 1 in svn 
under ecternals/moocow. there's also ratts, available from 
ling.uni-potsdam.de/~moocow/projects/pd

marmosets, -bryan  
-- 
typed with my opposable thumbs!

- Original message -
 Hi, i am developing a proyect where the main idea is transform text data
 to sound. Time ago i was experimenting with the concept of devices as
 files in linux where you can read diferent files, like pdf as sound
 redirecting files to standar output ( by example in bash you can do cat
 /dev/hda1  /dev/audio to hear the sound of harddisc data)
 Then i am looking for similar procedures using PD, anybody out there know
 about a way to transform by explame a pdf or plain text into sound
 output? i know its a very general question but any help will be
 apreciated
 
 thanks
 F


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Andrew Faraday

I've got an open source project using ruby to parse strings and send commands 
via TCP to pure data. Which started with some of my earliest non-pd coding. 
It's not currently set up to read text files, but it'd be a fairly simple mod, 
so you're welcome to learn ruby and submit a patch. 
PDF's are a much more complicated file format, I don't know how you'd go about 
extracting the text content from them to feed the text-to-music algorithm.
Anyway, you can get it from
https://github.com/ajfaraday/text-to-music
The sonification is based on some simple rules:
Letters are a semitone apart in alphabetical orderNumbers describe a diminished 
scaleSpaces provide a gap(there are some specific percussion sounds)
It's actually quite a nice way of hearing the patterns in written language, you 
can hear rhymes, and repeating patterns and rhythms from the character length 
of words. It's set up to read twitter streams and RSS to get some real-time 
data on a subject of your choice, too. 
All I would ask is that you let me know how you find the project, and if you 
can think of another use for it. 
- Andrew
Date: Sun, 10 Jun 2012 18:59:57 -0400
From: dataf...@gmail.com
To: pd-list@iem.at
Subject: [PD] text to sound

Hi, i am developing a proyect where the main idea is transform text data to 
sound. Time ago i was experimenting with the concept of devices as files in 
linux where you can read diferent files, like pdf as sound redirecting files 
to standar output ( by example in bash you can do cat /dev/hda1  /dev/audio to 
hear the sound of harddisc data)

Then i am looking for similar procedures using PD, anybody out there know about 
a way to transform by explame a pdf or plain text into sound output? i know its 
a very general question but any help will be apreciated


thanks
F


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list 
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Matthias Kronlachner
there is also one for espeak library which is quite nice because you can 
easily change pronunciation (voice) and pitch.


http://github.com/kronihias/espeak
http://espeak.sourceforge.net

matthias

Am 11.06.12 15:59, schrieb Bryan Jurish:

there are at least 2 pd interfaces to the flite tts library out there, 1 in svn 
under ecternals/moocow. there's also ratts, available from 
ling.uni-potsdam.de/~moocow/projects/pd

marmosets, -bryan


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Alexandre Lard
Hello,

I did something last year, based on a patch by Philippe Boisnard.
It's some kind of a typewriter.
The patch can read a textfile (and only that) and send each letter to
different selectors.
Each letter is associated to a number which is also turned into a frequency
using [mtof]
And then ...
In fact with this patch, once who are able to select each letter, you can
do anything you want with it.

Here is a sample.
Tell me if you want to have a closer look to the patch.

http://www.youtube.com/watch?feature=player_embeddedv=HX7h12_Tg64

Hope it can be useful.



2012/6/11 Matthias Kronlachner m.kronlach...@student.tugraz.at

  there is also one for espeak library which is quite nice because you can
 easily change pronunciation (voice) and pitch.

 http://github.com/kronihias/espeak
 http://espeak.sourceforge.net

 matthias

 Am 11.06.12 15:59, schrieb Bryan Jurish:

 there are at least 2 pd interfaces to the flite tts library out there, 1 in 
 svn under ecternals/moocow. there's also ratts, available from 
 ling.uni-potsdam.de/~moocow/projects/pd 
 http://ling.uni-potsdam.de/%7Emoocow/projects/pd

 marmosets, -bryan



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
Alexandre Lard

http://www.alexandrelard.fr
http://www.alexandrelard.fr/photographie
http://www.alexandrelard.fr/blog

CV au format PDF http://alexandrelard.fr/cv_hiver_2010.pdf
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Andrew Faraday

Update: I've just added support for reading plaintext files, it's all in the 
readme

From: jbtur...@hotmail.com
To: dataf...@gmail.com; pd-list@iem.at
Date: Mon, 11 Jun 2012 20:29:30 +
Subject: Re: [PD] text to sound





I've got an open source project using ruby to parse strings and send commands 
via TCP to pure data. Which started with some of my earliest non-pd coding. 
It's not currently set up to read text files, but it'd be a fairly simple mod, 
so you're welcome to learn ruby and submit a patch. 
PDF's are a much more complicated file format, I don't know how you'd go about 
extracting the text content from them to feed the text-to-music algorithm.
Anyway, you can get it from
https://github.com/ajfaraday/text-to-music
The sonification is based on some simple rules:
Letters are a semitone apart in alphabetical orderNumbers describe a diminished 
scaleSpaces provide a gap(there are some specific percussion sounds)
It's actually quite a nice way of hearing the patterns in written language, you 
can hear rhymes, and repeating patterns and rhythms from the character length 
of words. It's set up to read twitter streams and RSS to get some real-time 
data on a subject of your choice, too. 
All I would ask is that you let me know how you find the project, and if you 
can think of another use for it. 
- Andrew
Date: Sun, 10 Jun 2012 18:59:57 -0400
From: dataf...@gmail.com
To: pd-list@iem.at
Subject: [PD] text to sound

Hi, i am developing a proyect where the main idea is transform text data to 
sound. Time ago i was experimenting with the concept of devices as files in 
linux where you can read diferent files, like pdf as sound redirecting files 
to standar output ( by example in bash you can do cat /dev/hda1  /dev/audio to 
hear the sound of harddisc data)

Then i am looking for similar procedures using PD, anybody out there know about 
a way to transform by explame a pdf or plain text into sound output? i know its 
a very general question but any help will be apreciated


thanks
F


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list 


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list 
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Patrice Colet


 Mail original -
 De: Andrew Faraday jbtur...@hotmail.com
 À: dataf...@gmail.com, pd-list@iem.at
 
 Hi, i am developing a proyect where the main idea is transform text
 data to sound. Time ago i was experimenting with the concept of
 devices as files in linux where you can read diferent files, like
 pdf as sound redirecting files to standar output ( by example in
 bash you can do cat /dev/hda1  /dev/audio to hear the sound of
 harddisc data)
 
 Then i am looking for similar procedures using PD, anybody out there
 know about a way to transform by explame a pdf or plain text into
 sound output? i know its a very general question but any help will
 be apreciated
 

hello,

maybe [mjlib/morse], or/and [moocow/any2string]-[mtof]-[phasor~]

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread András Murányi
On Mon, Jun 11, 2012 at 10:29 PM, Andrew Faraday jbtur...@hotmail.comwrote:

  I've got an open source project using ruby to parse strings and send
 commands via TCP to pure data. Which started with some of my earliest
 non-pd coding. It's not currently set up to read text files, but it'd be a
 fairly simple mod, so you're welcome to learn ruby and submit a patch.

 PDF's are a much more complicated file format, I don't know how you'd go
 about extracting the text content from them to feed the text-to-music
 algorithm.
 [...]


PDF is indeed complicated, but extracting text can be as simple as a
(simple) regular expression. As far as I understand, basically, everything
between parentheses ( and ) is text (or more rigorously, everything
between parentheses between the strings BT and ET between the strings
obj and endobj is text, but I think it's enough to search for only the
parantheses). The escape character is the backslash, and it has only a
couple uses:

Sequence | Meaning
-
\n   | LINE FEED (0Ah) (LF)
\r   | CARRIAGE RETURN (0Dh) (CR)
\t   | HORIZONTAL TAB (09h) (HT)
\b   | BACKSPACE (08h) (BS)
\f   | FORM FEED (FF)
\(   | LEFT PARENTHESIS (28h)
\)   | RIGHT PARENTHESIS (29h)
\\   | REVERSE SOLIDUS (5Ch) (Backslash)
\*ddd* | Character code *ddd* (octal)

Apart from security settings that may block text extraction, unfortunately,
there could be compression applied - but I don't know how that works.

András
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text to sound

2012-06-11 Thread Max D
There is also the text2wave method with [shell] to make some wav files.

echo text to be synthesized | text2wave -f 44100 -scale 1 -o
/home/username/file/output.wav

maxD

On Mon, Jun 11, 2012 at 7:45 PM, András Murányi muran...@gmail.com wrote:


 On Mon, Jun 11, 2012 at 10:29 PM, Andrew Faraday jbtur...@hotmail.com
 wrote:

 I've got an open source project using ruby to parse strings and send
 commands via TCP to pure data. Which started with some of my earliest non-pd
 coding. It's not currently set up to read text files, but it'd be a fairly
 simple mod, so you're welcome to learn ruby and submit a patch.

 PDF's are a much more complicated file format, I don't know how you'd go
 about extracting the text content from them to feed the text-to-music
 algorithm.
 [...]


 PDF is indeed complicated, but extracting text can be as simple as a
 (simple) regular expression. As far as I understand, basically, everything
 between parentheses ( and ) is text (or more rigorously, everything
 between parentheses between the strings BT and ET between the strings
 obj and endobj is text, but I think it's enough to search for only the
 parantheses). The escape character is the backslash, and it has only a
 couple uses:

 Sequence | Meaning
 -
 \n   | LINE FEED (0Ah) (LF)
 \r   | CARRIAGE RETURN (0Dh) (CR)
 \t   | HORIZONTAL TAB (09h) (HT)
 \b   | BACKSPACE (08h) (BS)
 \f   | FORM FEED (FF)
 \(   | LEFT PARENTHESIS (28h)
 \)   | RIGHT PARENTHESIS (29h)
 \\   | REVERSE SOLIDUS (5Ch) (Backslash)
 \ddd | Character code ddd (octal)

 Apart from security settings that may block text extraction, unfortunately,
 there could be compression applied - but I don't know how that works.

 András

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] text to sound

2012-06-10 Thread FernandoG
Hi, i am developing a proyect where the main idea is transform text data to
sound. Time ago i was experimenting with the concept of devices as files in
linux where you can read diferent files, like pdf as sound redirecting
files to standar output ( by example in bash you can do cat /dev/hda1 
/dev/audio to hear the sound of harddisc data)
Then i am looking for similar procedures using PD, anybody out there know
about a way to transform by explame a pdf or plain text into sound output?
i know its a very general question but any help will be apreciated

thanks
F
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list