im very interesting to create a app like "sirioforandroid" which is present also in the gallery of MIT app inventor 2...but when i try on my phone it doesn't answer me....my phone's android version is 6.0....please help me....when i try whith only a question it woks,but when i put the duplicate question it doesen't work anymore...please....answer me....thank youvery much.
--
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
--
try to speak a few times "Pizza Margherita" to find out, which word combinations the speech recognizer returns as result... you will have to check for all these words, the speech recognizer is not very reliable to understand words exactly... also you might want to convert all words into lower case, the contains text block is case sensitive...
--
Thanks so much...you are very kind......i resolve it also with the word combination....it was a problem only of word........i would ask to you another think..... if i want to make Pizza Margerita 1,2,3,4 5 = 5 euro and Pizza marrgherita 6,7,8,9= 6 euro......how can i make this function???????or if i want make Pizza margerita 2,4,6,8,10,12,14 (equal )= 6 euro ....and Piazza margerita 1,3,5,7,9,11,13,15(odd)= 7 euro.....how can i make this 2 function...???
thank you for the patient.....have a good day my friend.
thank you for the patient.....have a good day my friend.
--
i don't understand how can i make,Abraham...can you add a screenshot,please???.....i woud make in a fast way this step....a continuos numbering, odd numbered or even numbered: Pizza Margherita 1,Pizza Margherita 2,Pizza Margherita 3 = 5 euro Pizza Margherita 4,Pizza Margherita 5,Pizza Margherita 6 =7 euro or pizza 1,pizza 3, pizza 5, pizza 7(only odd) = 10 euro pizza 2,pizza 4, pizza 6 , pizza 8(only evenl) = 8 euro.........how can I put in the block that I've posted on here ??? thanks a lot to all of you and good day.
--
What do you mean when you say
--
Pizza Margherita 4,Pizza Margherita 5,Pizza Margherita 6 =7 euro ?
Do you mean you have three different styles of Pizza Margherita, named
✫ Pizza Margherita 4,
✫ Pizza Margherita 5,
✫ Pizza Margherita 6
and that each of those styles costs 7 euro per slice?
Or do you mean that the number you mention after the pizza type named Pizza Margherita
refers to the quantity of such pizzas to be given to the customer, at 7 euro for the total batch of 4 to 6 pizzas of that type?
no..in practice I would define the pizza according to miles ... for example a Margherita from 1 to 3 miles costs 5 euro, from 4 to 8 miles cost 6 and so on .... thank you for your interest .. ..really kind.
--
See attached for how to do a double value lookup, using a colon (:) between the pizza type and the miles.
I put the lookup table in blocks because it was a small samples and because I was in a rush.
For bigger tables with more miles and pizza types, you will need to switch to a csv file like in this sample:
I have a file in this list .xlsx po ..but how can i do upload it to the project ??
--
convert the table into csv format, just store it as csv file (comma separated values)
then use the file component to read the file and convert the csv table into a list using the list from csv table block
sEE THIS DOC FOR AN EXAMPLE OF UPLOADING A CSV TABLE INTO THE mEDIA DRAWER AND READING IT IN AN APP...
--
(DARN CAPS LOCK)
The only part of my example appropriate for your app is the part that loads the file, at the very start.
--
Rip out the rest.
In Scrteen1.Initialize, Read the File with the csv text.
Don't read it any where else, since you will then have it available. in the global map.
Since you are doing lookup from the table using speech recognition as your key,
you will need to downshift the csv text as it goies into the table, when it is loaded.
Otherwise, nothing will match. Speech recognition assumes everything you say is lower case, which does not match upper case.
When a spoken street name arrives, pass it thru the attached filter procedure to look up that text from the map table, using column 2.
The output will be all the rows that match that text in column 2, which you can show in a label and announce via speech.
Ok...this is my work but don't work lol....Thanks very very much for all your advice
--
Screen shots?
--
Blocks image?
What you did and how you debugged it?
FAQ:
You never called the procedure
--
See the chapter on procedures in the book in the FAQ.
OK thanks a lot....today i LL try to see where is my wrong.. .thanks...and have a nice day.
--
--
i understand how many process i had wrong....thanks to Abraham and taifun,im trying to resolve in these way.....but im stilling wrong something.....can you help me???thank so munch..
See attached for a much simpler approach.
Faro3.aia
Going offline for a day, so you will have to test it yourself.
P.S. Speech recognition is spotty at best.
You have to apply Divide and Conquer to the problem.
--
Is the speech recognition getting the right text?
Is that text exactly in the TinyDB tag collection?
What is you replaced the input text label with a text input box, and typed in the search word, to test the lookup function?
Does the language setting of your device give you proper spelling matching your csv file?
Speech recognition can't reed ewer mined if yew kneed exact spelling to match TinyDB tagz.
Here's a sample app in the Gallery to test your device's speech recognition:
--
It should respond to "clap on" and "clap off".
--
댓글 없음:
댓글 쓰기