LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2010, 02:13 AM   #1
RavhisingRickRude
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
.wav file executed by script


Hello Everyone

I have a .wav file that ask "what's is your name in a robotic/computer voice. Is there I way I can execute that .wav file to execute as the script itself ask "What is your name?" giving the illusion that the computer is asking the question? Thanks again.

-RRR
 
Old 12-28-2010, 02:19 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Most distros have aplay installed in a standard system, so try
Code:
aplay your-wav-file.wav
 
Old 12-28-2010, 02:32 AM   #3
RavhisingRickRude
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I was using mplayer and it works. But I wanted the .wav file to execute as the file "What is your name name?"
 
Old 12-28-2010, 02:53 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
I don't get want you want. You can't execute a sound-file? Do you want to just play that file? Do you want that simultaneous text is displayed? Do you want the user to put text in?
Please state clearly what you intend to do.
 
Old 12-28-2010, 03:38 AM   #5
RavhisingRickRude
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
sorry. I want the the .wav file to play as the text "What is your name" is displayed. Yes I want them to be simultaneous because the .wav file itself has audio that actually says "what is your name"
 
Old 12-28-2010, 04:01 AM   #6
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
I assume you want the sound file to be played when the pc boots up. In this case you would be required to put the code in the startup scripts. As far as the text is concerned I do not see it making a lot of sence but then you can put the question in /etc/motd.
Hope this helps.
 
Old 12-28-2010, 05:06 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
In script:

Code:
#!/bin/bash
aplay  /path/to/file   &
echo 'What is your name?'
 
Old 12-28-2010, 05:16 AM   #8
john_erlandsson
Member
 
Registered: Jul 2009
Location: Sweden
Distribution: Fedora
Posts: 70

Rep: Reputation: 1
Perhaps you should try festival with your script.
It is a text2speech tool that should be in your repo.

You can use it like this:

Code:
echo "Whats your name? "
echo "Whats your name?" | festival --tts
Might be fun...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which script gets executed? junglepunk Linux - Newbie 20 06-18-2010 09:44 AM
Shell script executed on login kefi Linux - Desktop 13 03-01-2010 11:04 AM
[SOLVED] Script to automatically merge 2 wav files in 1 mp3 file Jackuss Linux - Newbie 5 12-02-2009 02:32 AM
Getting location of the script which is currently being executed jiju.jacob Linux - Newbie 4 07-21-2008 06:48 AM
script executed inside another script dont make changes potraike Linux - Newbie 4 03-05-2008 06:27 AM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration