Artificial Intelligence Depot
Visiting guest. Why not sign in?
News, knowledge and discussion for the AI enthusiast.
FEATURES COMMUNITY KNOWLEDGE SEARCH  
Get Creative: AI Article Writing Contest
Fancy the chance of getting developer focus, improving your research skills, sharing your artificial intelligence ideas, obtaining expert feedback, getting published online AND winning a prize?
Enter the AI Article Writing Contest!

Reply to Message

Not registered yet?

The AI Depot has a focused community of friendly users. Rather than let anyone abuse the site at the brink of promiscuity, we prefer to let only those with an active interest participate... this simply requires registering.

Why not sign up!

Joining the site's community is completely free. You can then post messages freely, and customise your personal profile at will. Specific privileges will also be granted to you, like being able to access printer-friendly articles without restrictions. So, why not register?

Username:
Password:
Subject:
Email me when someone replies.
Body:

Parent Message

SAPI 5 Grammars

Can anyone explain how the grammars within SAPI version 5 work? Do they describe common speech sequences?

- Bob

136 posts.
Sunday 07 April, 15:56
Reply
grammar

Having played about with it a bit I've found out how the grammar works, and it's really very nice indeed. I devised the following XML grammar for my rodney robot, with the idea being that I could interact with the robot within a limited speech domain in order to help it learn to identify several objects. Just testing the recognition a few times I got 100% success with no errors at all!

- Bob

- <RULE NAME="Greeting" TOPLEVEL="ACTIVE">
<RULEREF NAME="salutation" />
<RULEREF NAME="person" />
</RULE>

- <RULE NAME="salutation">
-
hello
hi
hi there
good morning
good afternoon
good evening

</RULE>

- <RULE NAME="person">
-
rodney
bob
kate
sandra
roy

</RULE>

- <RULE NAME="DefineObject" TOPLEVEL="ACTIVE">
<RULEREF NAME="isa" />
<RULEREF NAME="ObjectName" />
</RULE>

- <RULE NAME="isa">
-
this is a
it is a
it's a
you're looking at a
you are looking at a

</RULE>

- <RULE NAME="ObjectName" DYNAMIC="TRUE">
-
this
person
ball
toy
cup
wooden toy
wooden man
desk
telly
keyboard

</RULE>

- <RULE NAME="Attention" TOPLEVEL="ACTIVE">
<RULEREF NAME="attendto" />
<RULEREF NAME="ObjectName" />
</RULE>

- <RULE NAME="attendto">
-
look at the
look at
look towards the
look towards
see the

</RULE>

136 posts.
Sunday 07 April, 17:03
Reply
Grammar

Hi Bob,

Could you please tell me which ASR did you use for this project. I am not sure if there are many speech recognisers available, which are SAPI 5.0 compatible. I am looking for a good SAPI 5.0 compatible ASR. Could you please recommend one?.

Regards

Naresh

3 posts.
Friday 19 April, 10:36
Reply
wah?

ASR?

136 posts.
Friday 19 April, 11:39
Reply
ASR = Speech Engine

ASR is the speech engine. The full form of ASR is Automatic Speech Recogniser. What I was asking is what is the speech engine you used for this grammar.

Naresh

3 posts.
Friday 19 April, 12:06
Reply
Speech engine

I think the speech engine is "microsoft english recogniser 5.1"

- Bob

136 posts.
Friday 19 April, 12:20
Reply
Grammars

Sorry, I don't know much about NLP or SAPI.

Though the XML looks very simple and eleguant indeed. Can rodney understand now?

Andy knows quite a bit about this topic, though you'll have to wait until he gets back from his holiday!

935 posts.
Tuesday 09 April, 19:26
Reply
Speech recognition and semantic networks

So far recognition based on the above grammar has been perfect. The idea is to use a speech interface to train the robot to recognise a few objects visually, using shared attention mechanisms similar to those used by Brian Scassellati or Hideki Kozima.

The speech interface also adds a good means of increasing the scope of the robot's learning via the open mind database. For example, if the robot can be trained to recognise a bananna it can then ask "is that a kind of fruit?" and have a verbal confirmation or rejection. Using this method I could build a small semantic network dealing with the limited number of things which the robot typically encounters.

- Bob

136 posts.
Wednesday 10 April, 02:27
Reply
Queries on SAPI grammar XML

Hi,

I am doing a project on SAPI and I am not very familiar with this software. I was hoping you guys could help me.

I have written a XML grammar file for SAPI recognition and I was wondering if it's possible to activate & deactivate certain rules for recognition during runtime. For example, I want the recognizer to recognise names now, wait for a program to respond and then recognise addresses next. Will this activation and deactivation increase the accuracy of recognizing a subset of the words in the grammar file at a certain point in time?

Thank you for all your help!! :)

4 posts.
Monday 12 August, 23:32
Reply
RE: Queries on SAPI grammar XML

Of course you could do this in XML and SAPI. I have been using IBM ViaVoice which has two interfaces SAPI and SMAPI (which is a IBM standard and works on unix based machines as well) and I have written application in SMAPI environment. The dynamic switching of grammars does work with SMAPI, so I am sure it will work with SAPI also.

Cheers

Naresh

3 posts.
Thursday 15 August, 06:57
Reply
RE: Queries on SAPI grammar XML

Hi,

Do you know how I can go about dynamically switching the grammars?

4 posts.
Saturday 17 August, 07:20
Reply

Back to the Artificial Intelligence Depot.