I ask the user for a number for a slot and then want to confirm the number. The numbers are seven digits(e.g., 5433975).
Alexa confirms by saying the number as a value rather than saying each digit.
I have tried '{acblNumber} right' for the confirmation and it does not work.
I hope someone has a solution.
You must send speech output as SSML type:
speechOutput = "<say-as interpret-as='digits'>5433975</say-as>"
Related
I try lots of things but I failed kindly help me with how to do this and please someone shares a complete. I also share a screenshot of the original app I making same like this app.
App description:
1:When typing or calculating on the app if the user needs the next line and show a list num
2: The most important thing is when we calculate any num can we write something in the same type ( you think it's a notepad + calculator)?
3: Also when we write and type 5 + 5 we don't need to press = equal to. they abstract and subtract automatically.
thank you so much for your support.
I have a Google Assistant recycling app in test whose introductory scene prompts a user for an item to be recycled. The app should tell the user how to dispose of the item. The introductory scene has 11 user intents. Nine of these process the input item to return a response specific to the item. #10 is a catchall if #1-9 fail to fire. It calls a webhook that looks up the input item in a JSON array and returns a result. #11 is a Help intent.
The nine item intents have between 11 and 51 training phrases each that should respond to prompts such as "What do you have" or "What it the item". The phrases include 10 variations along the lines "I have..." or "it's a ..." or "A ...". In testing some far, the input item works as intended with one exception: the "Some ..." input.
If "Some xxx" is input by keyboard or voice and the xxx in in a Type associated with one of the nine user intents, the input is processed correctly.
But if the xxx is not in those types associated with one of the nine user intents, the input is not always processed correctly. It should drop out to the webhook and in some cases it does. In other cases, Test Results shows that the input calls the third intent of nine (incorrect), and immediately returns to ask for another item without adding the prompt that should be added to the prompt queue when the third intent is entered, nor progressing to calling the webhook.
Some of these failed examples: "Some video" fails but "video" is handled correctly. "Some acid" fails but "It's acid" works. "Some audio" and "I have some audio" both work. The failure seems to be random by item and only if "Some" is the first word of the input.
Could this be mistaking "Some" for "Sum"?
I am trying to seek user feedback at the end of a google action session using actions sdk.
As per the Actions documentation (https://developers.google.com/actions/assistant/conversation-exits), I have set the cancel intent
"conversations" : {
...
"inDialogIntents": [
{
"name": "actions.intent.CANCEL"
},
...
and in my functions code I am calling a SimpleResponse as below:
app.intent('actions.intent.CANCEL', (conv, input) => {
conv.close(new SimpleResponse({
speech: 'Kindly rate between 1 and 5,
text: 'Rate between 1 and 5'
}));
});
When the user says goodbye, the above code gets called. The speech is heard and text displayed but the conversation immediately exits with an earcon.
The documentation mentions that the system will wait for 2 seconds before exiting but it seems to do so immediately. Is there a way to get this working? Thanks
It's not quite clear to me what you'd like to achieve. First of all, as long as you're using conv.close() method, you are ending the conversation. If you want to keep the mic open, you need to use conv.ask() method. But I'm not sure id you can use conv.ask() with actions.intent.CANCEL, because that event is there to get the user out, not to keep the conversation going. But I'm not %100 sure, you need to try it.
If what you're trying to achieve is something like this:
User: cancel
System: How would you rate our interaction?
User: Good.
earcon
Then, in my humble opinion, you probably shouldn't (and as I said you probably can't) do it. The docs clearly state that the purpose for custom exit behavior is:
to cleanup your fulfillment logic and respond to the user one last time.
Also, the docs doesn't say the system will wait for the user response for 2 second. It says the execution of the request (the time out for your fulfillment) is 2 seconds. Plus; if a user is canceling mid-conversation, chances are that the interaction was unsuccessful anyway. I'd rather create feedback dialog turns that are connected to the fallback intents and happy path(s).
Still, try to use conv.ask() instead and let me know if that works. (And please let me know by commenting.) Either case, though, I'd consider getting the feedback some other way.
If, for whatever reason, my application loses track of what sequence number I was on, what is the recommended way of re-establishing the session to continue trading?
From FIX 4.1 onwards, the Logon message (A) contains a tag ResetSeqNumFlag (141). Setting it to 'Y' "indicates that both sides of the FIX session should reset sequence numbers."
If the acceptor receives a message out of sequence, it would send a reject message and the reason for it in the text field. In the text field it would mention the sequence number expected, so parse that part of the message, take the sequence number and start again.
I need to calculate words per minute while typing in textfield. It is typing speed calculator and it provides user text need to be typed in the lable above textfield. Please give me some idea how to get started and what events to use.
Thanks you.
UITextField lets you set a delegate implementing UITextFieldDelegate. That object will be sent textField:shouldChangeCharactersInRange:replacementString: for each edit the user does (for example entering a char).
In there you can implement your logic - saving the timestamp of the first entry, comparing each entry against the correct string, and then, when the entire string has been entered by the user, dividing the number of words with the spent time.