Using cat and echo

Hello,
I am trying to use an older serial device, a doubletalk speech synthesizer. It is connected to an USB to serial adaptor, based on the ftdi chipset. I have installed a driver for mac from the ftdi site onto my laptop, a MacBook pro running mac os x 10.6 snow leopard. I am trying to use the cat and/ or echo commands to test my synthesizer. In terminal I have redirected the cat command like so:

cat > /dev/**.usbserial-FTKVMAFF

I haven't been able to get audio output from cat or echo. My question is is there something I need to set up to configure my port, where the USB to serial adaptor is plugged into on my laptop?

Posted on Sep 24, 2009 1:41 PM

Reply
9 replies

Sep 25, 2009 6:06 AM in response to jamesapp

I have suscribed to a screen reader mailing list, and members of the mailing list, had advised me to use cat and echo to test my synthesizer. Although one member of the mailing list did say that even though her synthesizer was working with her screen reader, it didn't work with echo. Another member of the mailing list said they had a traditional serial port, and they always got audio output from cat and echo?

Sep 25, 2009 8:41 AM in response to jamesapp

I tried

cat > /dev/**.usbserial-FTKVMAFF
hello world

and then hit return(no audio output) then I typed cntrl-c to exit cat. I then tried

cat > /dev/tty.usbserial-FTKVMAFF
hello world

and then hit return(no audio output) then I typed cntrl-c to exit cat. I have been able to send a text file to my synthesizer, using a terminal emulator called ckermit. Within ckermit I used the transmit command to send a text file to my synthesizer. And from what I remember depending on how the file was saved i.e. plain text, rtf etc. effected the success of the transmit command. But people from the screen reader mailing list did suggest using echo and cat to test my synthesizer. Thanks for the responses.

Sep 25, 2009 10:07 AM in response to jamesapp

ok
someone from the mailing list had told me, that the only reason he thought the cat and echo commands weren't working was because my synthesizer might need special control characters either at the beginning or end of the file, or in the case of cat at the beginning or end of the text , I am sending it. I did read in the user manual of my doubletalk speech synthesizer, that if you start a file with cntrl-A, the synthesizer will not speak what is immediatly after the cntrl-A, but treat it as a command. Like you can change the voice of the synthesizer with certain commands. I was testing out my synthesizer with ckermit(a terminal emulator) and when I would send a file, using ckermits transmit command, that started with cntrl-A, my synthesizer wouldn't speak immediatly. I would then send a file to my synthesizer that did not start with cntrl-A and my synthesizer would speak both files. Is it possible that cat is sending the text I write to the buffer? And my synthesizer is expecting a cntrl character and won't speak until it gets it? I do have a file on my computer, that starts with cntrl-A, then has some text, and ends with a NUL character. When I transmit that command, my synthesizer speaks in a different immediately. Does anyone know how to write a NUL character in terminal? I want to test the cat command by typing some text, and ending with a NUL character, and then hitting return.

Sep 26, 2009 6:18 PM in response to jamesapp

ok
I found out why cat and echo weren't working. I sent some text, using the cat command, to my synthesizer and ended the text with a NUL character. By typing cntrl shift @. And my synthesizer spoke the text I had written. My question now is can I have cat append a file, or text with a NUL character automatically? So that when i use the ckermit log session command along with cat my synthesizer will speak the complete session, like if I type ls my synthesizer will speak the complete directory listing? Any help?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using cat and echo

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.