Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 05:10
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Chatterbox - STT / TTS / TTA project. Part 2
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 6 [89 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 02:15    Post subject:  

in a perfect world, the speech-driven puppy would have this menu at a minimum, and it would have the ability to add any other functionality that is available (as long as the user is willing to tediously speak, type, or and confirm every option for every .pet available in this "distro" and then create it as part of the vocabulary and expand menu options using speech-driven tools such as the universal installer...

Quote:
main menu

desktop-

clockset
clipboard settings

system-

grub
grub4dos
pdisk
boot manager

setup-

wizard wizard

utility-

control panel
x-archive
backup
resize psfile
execute command
new function utility
vocabulary builder
universal installer

filesystem-

file manager
disk mounter/unmounter

document-

e-reader
dictator

business-

calculator

personal-

password manager
organizer
event timer

network-

firewall
networking

internet-

browser

multimedia-

music player

fun-

memory game

help -

options
x-plain (a brief audible explanation of each option above)
FAQ
info

shutdown options-

reboot
shutdown
restart



IMHO...this would allow for maximum customization without overwhelming the user right off the bat AND keeping it a small so we dont overwhelm those who have to code it right off the bat. Use lucid 5.2.8 (stripped down to the above menu options being the only options available "out of the box").

after the guts of making the voice activation play random music files gets ironed out, creating the above menu items by adding them into the vocabulary and working out the universal installer first, everything else in Lucid COULD be added or removed from the speech-driven menu by myself or anybody else regardless of their visual abilities...


if I am getting to far ahead or forgetting anything, speak up someone please!

Cheers Very Happy

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2106
Location: New Zealand

PostPosted: Thu 17 Oct 2013, 07:03    Post subject:  

I got the whole shebang running successfully to my satisfaction tonight - including randomplay.

I also made another version of it that does not do the randomplay thingy - it has it's own included musical interlude instead - just for the purposes of getting people to trial the "proof-of-concept":

I decided to make this version into a combined tarball of chatterbox+espeak+sphinx, all ready to go in case anyone is interested in giving it a trial. The tarball includes a howto.txt for easy manual installation as I don't know how to do a pet yet.

If anyone gives it a go (and I'm keen to hear feedback...) I recommend you try it on a live session of Lucid 528 (either liveCD / pfix=ram or rename/relocate your savefile so that it can't be found)

22MByte Download here:
http://www.mediafire.com/download/ryd2765w0eigebd/chatterbox_espeak_sphinx_prototype.tar.gz
(file now updated to include libportaudio pet which some users may need to install - thanks for that info Keef)

Installation instructions
See Howto.txt file included in tarball.

Troubleshooting tips:
1) Find a quiet room for testing in.
2) Have a look in the /root/chatdump.txt file to see if any of the words you speak are being decoded (use file/reload to view latest decodes)
3) If decoding is poor or non-existent try speaking at different distances from the mic - too near or too far can cause problems depending on the mic, voice and soundcard. Try talking in an American accent. Try saying the words "beginning" or "kitchen" - they seem to have good decodability. The main word we want to decode for the purposes of this trial is "music" so try saying that in a clear voice and seeing if it gets correctly decoded.
4) After booting you should hear the voice prompt, but if you don't, go to /root/startup, rightclick the openspace, select "window - terminal here") and enter the following:
Code:
#./zzzQuestionplay
(Note the dot slash)
This will start the script that triggers the voice prompt and you may see helpful errors displayed in that terminal window. Post them here if you are unable to solve the issue referred to. (ignore anything about fonts...) - (some users may also need to install the libportaudio pet contained in the tar)
5) If you need to reboot or restart xserver during your troubleshooting remove the following two files first:
/root/chatdump.txt
/root/extracted_command.txt
(doing this isn't vital but may help eliminate any odd symptoms if you can't get things going)
.
.

Last edited by greengeek on Thu 17 Oct 2013, 14:23; edited 6 times in total
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 12:31    Post subject:  

let me find a caffeinated beverage and I am all over it greengeek!

im excited Smile ill let you know the results post haste!

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 562
Location: Staffordshire

PostPosted: Thu 17 Oct 2013, 13:28    Post subject:  

Works for me on Precise 571.
Espeak also needs libportaudio, but I was able to install that from my stash of assorted libraries.
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 14:01    Post subject:  

im having issue---but there is no surprise there.

im starting over and retrying from pfix=ram... im positive i messed up at least twice...

bear with me. im moving like a herd of terrapins...

fleet 'o foot i am not Smile

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2106
Location: New Zealand

PostPosted: Thu 17 Oct 2013, 14:26    Post subject:  

@Keef - thanks for the libportaudio info - I have now included this pet in the tar.gz and re-uploaded the prototype.

@H4LF82 - I have added some troubleshooting info above. Hope this helps resolve the issues.
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 15:56    Post subject:  

ok! obviously I am having an issue, but its not with the fotfware...its the hardware.

a word about me and hardware...i like hardware, and i really like overkill...and being an overkill-on-the-hardware kind of guy, my microphone is a home-brewed array of 8 different directional microphones. he results of me saying "music" in an American accent...

Code:
READY....
Listening...
Stopped listening, please wait...
000000000: i will will the it was in and i will to the a new
READY....
Listening...
Stopped listening, please wait...
000000001: i'll read that hold on to what what it the two
READY....
Listening...
Stopped listening, please wait...
000000002: two are all out
READY....
Listening...
Stopped listening, please wait...
000000003: you're not like on
READY....
Listening...
Stopped listening, please wait...
000000004: why
READY....
Listening...
Stopped listening, please wait...
000000005: and i don't
READY....
Listening...
Stopped listening, please wait...
000000006: yeah
READY....
Listening...
Stopped listening, please wait...
000000007: they are on the at it
READY....
Listening...
Stopped listening, please wait...
000000008: i know
READY....
Listening...
Stopped listening, please wait...
000000009: but the i have
READY....
Listening...
Stopped listening, please wait...
000000010: yeah
READY....
Listening...
Stopped listening, please wait...
000000011: all right
READY....
Listening...
Stopped listening, please wait...
000000012: that as
READY....
Listening...
Stopped listening, please wait...
000000013: yeah
READY....


I obviously need to dig out a different mic. it IS working tho...just gotta go tweak the hardware on my end. not a big deal...im a hardware guy and ive got a bag of mics and fresh solder and flux from home depot if I need to build a simple mic real quick.

Very Happy nice job thank you! ill sort thiss mic issue out and then retry...i have every confidence it functions Smile

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 16:54    Post subject:  

ok ive done the install a couple of times now to make sure I get it clean from pfix=ram and loaded it as per the instructions. ive instructed everyone to leave and go to the store and im turning off all fans and other sources of noise. i have a newly built mic thats ready to go...i have only to restart the x server to begin the fun...

it will be 30 minutes for these girls to get dressed and gone, so im gonna pause for a quick sandwich and a beverage. when i get back i will restart x in a completely quiet environment with appropriate volume settings and then report on the results...

ill be back ! Very Happy

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson

Last edited by H4LF82 on Thu 17 Oct 2013, 17:01; edited 1 time in total
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2106
Location: New Zealand

PostPosted: Thu 17 Oct 2013, 16:56    Post subject:  

H4LF82 - it looks to me as if your mic is never hearing silence, or maybe there is incoming noise from more than one mic?? Maybe the gain is too loud - on one puppy I had to turn off the normal 20DB mic boost and also wind the capture vol right down. Just looks like your mic is overloaded with incoming input maybe?

If you unplug the mic dose the chatdump.txt file stay silent? (except for READY...)

Im thinking inbuilt mics might be problematic if there was a noisy HDD...
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 17:09    Post subject:  

that microphone i was using is special. it cannot be counted as a typical mic..it is 8 microphones in an array. it can hear an ant tripping and if you feel like doing some math it will tell you which direction the ant tripped in and how far away it was...a fresh built puppy running in RAM for the first time cannot cope with it, i have no doubt.

I now have a desk mic with a new cord; so no more overload.

no worries...nd yes with no mic it does stay silent (READY..... is all there is with no mic)

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2058
Location: Heart of Texas

PostPosted: Thu 17 Oct 2013, 17:40    Post subject:  

H4LF82 wrote:
that microphone i was using is special. it cannot be counted as a typical mic..it is 8 microphones in an array. it can hear an ant tripping and if you feel like doing some math it will tell you which direction the ant tripped in and how far away it was...a fresh built puppy running in RAM for the first time cannot cope with it, i have no doubt.

I now have a desk mic with a new cord; so no more overload.

no worries...nd yes with no mic it does stay silent (READY..... is all there is with no mic)


That actually sounds cool, like the auditory awareness methods used in pilots helmets. Your ears can 'see' almost 360x360 when your eyes are looking forward, a missle or enemy plane(s) can be heard in your minds eye, with audio phase changes and microseconds delays.
It's very amazing how well the ears can intercept sound and paint a picture of the environment.
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 18:04    Post subject:  

Code:
READY....
Listening...
Stopped listening, please wait...
000000000: music
READY....
Listening...
Stopped listening, please wait...
000000001: music
READY....
Listening...
Stopped listening, please wait...
000000002: music
READY....


the "music" was funny! i can indeed confirm that it works!

nice job greengeek!

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 18:41    Post subject:  

Quote:
That actually sounds cool, like the auditory awareness methods used in pilots helmets. Your ears can 'see' almost 360x360 when your eyes are looking forward, a missle or enemy plane(s) can be heard in your minds eye, with audio phase changes and microseconds delays.
It's very amazing how well the ears can intercept sound and paint a picture of the environment.


the build used to be here...

http://hackaday.com/2010/09/22/build-a-tetrahedral-ambisonic-microphone/

...but like all cool things, hackaday has succumbed to the evil consumerism monster and is happy to throw the occasional ad at you and unhappy to mirrir the projects that make them what they used to be.

my mic is like that one only mine has left and right channels for each point in the geometry...so where this one has 4 mics...mine has 8. The plan is to get it mounted to my RV underneath so i can hear the goings on outside as if the walls were not padded with insulative foam, sound-dampening board and half inch cedar. I can hear everything going on outside and nobody outside can hear what happens inside.

Very Happy it is cool...

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 2058
Location: Heart of Texas

PostPosted: Thu 17 Oct 2013, 18:57    Post subject:  

H4LF82 wrote:
Quote:
That actually sounds cool, like the auditory awareness methods used in pilots helmets. Your ears can 'see' almost 360x360 when your eyes are looking forward, a missle or enemy plane(s) can be heard in your minds eye, with audio phase changes and microseconds delays.
It's very amazing how well the ears can intercept sound and paint a picture of the environment.


the build used to be here...

http://hackaday.com/2010/09/22/build-a-tetrahedral-ambisonic-microphone/

...but like all cool things, hackaday has succumbed to the evil consumerism monster and is happy to throw the occasional ad at you and unhappy to mirrir the projects that make them what they used to be.

my mic is like that one only mine has left and right channels for each point in the geometry...so where this one has 4 mics...mine has 8. The plan is to get it mounted to my RV underneath so i can hear the goings on outside as if the walls were not padded with insulative foam, sound-dampening board and half inch cedar. I can hear everything going on outside and nobody outside can hear what happens inside.

Very Happy it is cool...


Your RV must weigh a ton! but if you use your RV like me, it does not go much of anywhere, but provide a rolling man-cave parked on my get-a-way from the family,to undeveloped land. (posting from there now, great day in Texas, no A/C or heat needed.
Back to top
View user's profile Send private message 
H4LF82


Joined: 02 Oct 2012
Posts: 124

PostPosted: Thu 17 Oct 2013, 22:29    Post subject:  

okay, so correct me if I am wrong, but as i understand it, the point of this exercise was to make the "music" play by saying "music", and that is a done deal now, right?

so now should we go on to step 3, which I assume entails adding other command words (like "shutdown" and "restart") and adding those functionalities too?

if that is correct, can someone please confirm this for me?

Cheers! Very Happy

_________________
"The wise know their weakness too well to assume infallibility; and he who knows most, knows best how little he knows." - Thomas Jefferson
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 6 [89 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0864s ][ Queries: 12 (0.0059s) ][ GZIP on ]