It is currently Tue Jun 27, 2017 10:28 am

Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: dilemma app - tiny app for the decision-impaired
Unread postPosted: Mon Mar 27, 2017 6:25 pm 

Joined: Wed Apr 15, 2015 3:57 am
Posts: 450
This is just a simple tiny coin flip app for fun illustrating speech recognition for beginner users...

It is for entertainment purposes only, so probably don't use it to decide presidential candidates, healthcare decisions, financial transactions etc.... or at least don't blame me if you do :)

You launch it and speak a question: "Should I x or y?"

i.e. "Should I have pizza or eat a salad?"
"Should I leave my job or stick it out?"
"Should I get groceries or take a nap?"

It should also work somewhat if you string a bunch of choices as long as they are separated by "or" and have <verb><object> structure:

"Should I watch TV or play tennis or eat sushi?"

I will upload an apk later if people want me to, but for now the program is less than 25 lines so I figured I post it instead:

REM Start of BASIC! Program
REM dilemma resolver
TTS.SPEAK "Tell me your dilemma"
STT.LISTEN "ask 'Should I ... or...'"
LIST.GET v,1,s$

s$=REPLACE$(s$,"should I ","")
s$=replace$(s$," my "," your ")
SPLIT d$[],s$," or "
a$= "you should "+d$[x]
PAUSE 3000
DIALOG.MESSAGE "another?","",c,"yes","no"
UNTIL c<>1

Report this post
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest

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 post attachments in this forum

Search for:
Jump to: