VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
oza.4h07 at gmail.com Guest
|
Posted: Wed Mar 23, 2016 7:53 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
Hello,
I'm wonddering if it is possible, with Asterisk and any third party module or service, to build the following feature:
- caller dials a given extension dedicated to a given language (german, english, ...)
- Asterisk plays a welcome audio prompt
- caller spells his or her first name letter by letter (for example, caller spell "A", "L", "I", ...)
- Asterisk repeats spelled letters to caller.
If possible, which module is needed ?
Best regards |
|
Back to top |
|
|
asterisk at voipbusine... Guest
|
Posted: Wed Mar 23, 2016 8:39 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
Do you mean the directory( ) application that’s used as a dial by name directory service to match caller inputs to existing names? If not, then It's not going to be possible to simply have the user enter a digit, say ‘2’, and have Asterisk repeat a letter since the user could mean either ‘A’, ‘B’, or ‘C’.
John
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Olivier
Sent: Wednesday, March 23, 2016 8:53 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to recognize a name spelled letter by letter ?
Hello,
I'm wonddering if it is possible, with Asterisk and any third party module or service, to build the following feature:
- caller dials a given extension dedicated to a given language (german, english, ...)
- Asterisk plays a welcome audio prompt
- caller spells his or her first name letter by letter (for example, caller spell "A", "L", "I", ...)
- Asterisk repeats spelled letters to caller.
If possible, which module is needed ?
Best regards |
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Wed Mar 23, 2016 8:39 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
On Wednesday 23 Mar 2016, Olivier wrote:
Quote: | Hello,
I'm wonddering if it is possible, with Asterisk and any third party module
or service, to build the following feature:
- caller dials a given extension dedicated to a given language (german,
english, ...)
- Asterisk plays a welcome audio prompt
- caller spells his or her first name letter by letter (for example, caller
spell "A", "L", "I", ...)
- Asterisk repeats spelled letters to caller.
If possible, which module is needed ?
Best regards
|
Well, I'd do the whole thing in Dialplan (it's fairly computationally-
complete per Church and Turing), but I'm a masochist like that :p
What you need to do is have an inner loop; in which you use WaitExten() with a
short timeout to read a digit. If a digit is pressed within the timeout, you
will get directed to another extension. There you need to compare the digit
just pressed against the last digit pressed; and if it is the same, then you
select the next letter on that key. Otherwise you announce the last letter
selected, append it to the name so far, and select the first letter on that
key. If you timeout, then you announce the currently selected letter, append
it to the name so far and set no letter selected. (This is needed, because
you may have two letters in succession on the same key; so you must allow it
to timeout before you can enter the next letter.) If you timeout with no
letter selected, you increase a counter; and if this gets to some critical
number, you repeat the prompt: Background() the original announcement to
spell their name, and announce the letters entered so far. If the 1 key is
pressed once, backspace (and after the timeout, announce the remaining
letters); two presses within timeout clears the name entered so far and
starts again from scratch.
So, for example, someone might enter:
2 [set current letter to "A"]
(user waits for timeout) [Store and say "A". Set current letter to ""]
5 [Set current letter to "J"]
5 [set current letter to "K"]
5 [set current letter to "L"]
4 [4 != 5, so store and say "L". Set current letter to "G"]
4 [set current letter to "H"]
4 [set current letter to "I"]
7 [7 != 4, so store and say "I". Set current letter to "P"]
7 [set current letter to "Q"]
7 [set current letter to "R"]
7 [set current letter to "S"]
6 [6 != 7, so store and say "S". Set current letter to "M"]
6 [set current letter to "N"]
6 [set current letter to "O"]
(User waits for timeout) [Store and say "O". Set current letter to ""]
6 [set current letter to "M"]
6 [set current letter to "N"]
* [store and say "N". We now have "ALISON". Go to next context]
For the sake of your own sanity (or that of your unlucky successor), use
maningful labels in your GoToIf() statements; and be sure to comment the
resulting code liberally, so it looks a little bit less of an unwholesome
mess.
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Wed Mar 23, 2016 10:04 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
I'm thinking about something to delegate provisionning to end users:
a new employee joins the company, the system I'm after let him enter his own name himself, once for all.
Typing letters through numerical dialpad is not very convenient.
Using Speech Recognition could be interesting if applicable.
2016-03-23 14:38 GMT+01:00 Tech Support <asterisk@voipbusiness.us (asterisk@voipbusiness.us)>:
Quote: |
Do you mean the directory( ) application that’s used as a dial by name directory service to match caller inputs to existing names? If not, then It's not going to be possible to simply have the user enter a digit, say ‘2’, and have Asterisk repeat a letter since the user could mean either ‘A’, ‘B’, or ‘C’.
John
From: asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com) [mailto:asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com)] On Behalf Of Olivier
Sent: Wednesday, March 23, 2016 8:53 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to recognize a name spelled letter by letter ?
Hello,
I'm wonddering if it is possible, with Asterisk and any third party module or service, to build the following feature:
- caller dials a given extension dedicated to a given language (german, english, ...)
- Asterisk plays a welcome audio prompt
- caller spells his or her first name letter by letter (for example, caller spell "A", "L", "I", ...)
- Asterisk repeats spelled letters to caller.
If possible, which module is needed ?
Best regards
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Wed Mar 23, 2016 10:11 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
2016-03-23 14:38 GMT+01:00 A J Stiles <asterisk_list@earthshod.co.uk (asterisk_list@earthshod.co.uk)>:
Quote: | On Wednesday 23 Mar 2016, Olivier wrote:
Quote: | Hello,
I'm wonddering if it is possible, with Asterisk and any third party module
or service, to build the following feature:
- caller dials a given extension dedicated to a given language (german,
english, ...)
- Asterisk plays a welcome audio prompt
- caller spells his or her first name letter by letter (for example, caller
spell "A", "L", "I", ...)
- Asterisk repeats spelled letters to caller.
If possible, which module is needed ?
Best regards
|
Well, I'd do the whole thing in Dialplan (it's fairly computationally-
complete per Church and Turing), but I'm a masochist like that :p
What you need to do is have an inner loop; in which you use WaitExten() with a
short timeout to read a digit. If a digit is pressed within the timeout, you
will get directed to another extension. There you need to compare the digit
just pressed against the last digit pressed; and if it is the same, then you
select the next letter on that key. Otherwise you announce the last letter
selected, append it to the name so far, and select the first letter on that
key. If you timeout, then you announce the currently selected letter, append
it to the name so far and set no letter selected. (This is needed, because
you may have two letters in succession on the same key; so you must allow it
to timeout before you can enter the next letter.) If you timeout with no
letter selected, you increase a counter; and if this gets to some critical
number, you repeat the prompt: Background() the original announcement to
spell their name, and announce the letters entered so far. If the 1 key is
pressed once, backspace (and after the timeout, announce the remaining
letters); two presses within timeout clears the name entered so far and
starts again from scratch.
So, for example, someone might enter:
2 [set current letter to "A"]
(user waits for timeout) [Store and say "A". Set current letter to ""]
5 [Set current letter to "J"]
5 [set current letter to "K"]
5 [set current letter to "L"]
4 [4 != 5, so store and say "L". Set current letter to "G"]
4 [set current letter to "H"]
4 [set current letter to "I"]
7 [7 != 4, so store and say "I". Set current letter to "P"]
7 [set current letter to "Q"]
7 [set current letter to "R"]
7 [set current letter to "S"]
6 [6 != 7, so store and say "S". Set current letter to "M"]
6 [set current letter to "N"]
6 [set current letter to "O"]
(User waits for timeout) [Store and say "O". Set current letter to ""]
6 [set current letter to "M"]
6 [set current letter to "N"]
* [store and say "N". We now have "ALISON". Go to next context]
For the sake of your own sanity (or that of your unlucky successor), use
maningful labels in your GoToIf() statements; and be sure to comment the
resulting code liberally, so it looks a little bit less of an unwholesome
mess.
|
Yes I agree.
I also thought of using some IP Phone supporting custom XML application as having a feedback on screen is helpful.
Anyway, my question is about Speech recognition as this could be faster and portable to any handset.
I've given Google Speech Web API a short try, and it is not capable to recognize letters: when I spelled "A", it recognized "Air" !
|
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Wed Mar 23, 2016 10:24 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
On Wednesday 23 Mar 2016, Olivier wrote:
Quote: | I'm thinking about something to delegate provisionning to end users:
a new employee joins the company, the system I'm after let him enter his
own name himself, once for all.
|
This is generally good, because it means less work for you Just be
careful not to automate away so much of your job that you end up writing out
your own P45 .....
Quote: | Typing letters through numerical dialpad is not very convenient.
Using Speech Recognition could be interesting if applicable.
|
Not so long ago, we all used to use the number pad for writing out text
messages -- up to 160 characters at a time .....
But remember there is almost certain to be a computer next to the phone
anyway; so you could use a CGI script which injects entries into a database,
and a cron job (running as root on the Asterisk server) to check the
database every few minutes and do the necessary.
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Thu Mar 24, 2016 4:31 am Post subject: [asterisk-users] How to recognize a name spelled letter by l |
|
|
I've just found [1]
It seems to cover what I'm after.
I'll try to evaluate it.
I would be curious to learn about previous experiences with Lexicons and Lumenvox.
[1] http://www.lumenvox.com/knowledgebase/index.php?/article/AA-01064/0
2016-03-23 13:52 GMT+01:00 Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)>:
Quote: | Hello,
I'm wonddering if it is possible, with Asterisk and any third party module or service, to build the following feature:
- caller dials a given extension dedicated to a given language (german, english, ...)
- Asterisk plays a welcome audio prompt
- caller spells his or her first name letter by letter (for example, caller spell "A", "L", "I", ...)
- Asterisk repeats spelled letters to caller.
If possible, which module is needed ?
Best regards
|
|
|
Back to top |
|
|
|
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|