Skip to content

Commit

Permalink
Use correct mode names
Browse files Browse the repository at this point in the history
  • Loading branch information
bklang committed Mar 8, 2014
1 parent 0a2fd50 commit 3ded493
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ require 'ruby_speech'

nlsml = RubySpeech::NLSML.draw grammar: 'http://flight' do
interpretation confidence: 0.6 do
input "I want to go to Pittsburgh", mode: :speech
input "I want to go to Pittsburgh", mode: :voice

instance do
airline do
Expand Down Expand Up @@ -288,7 +288,7 @@ becomes:
<?xml version="1.0"?>
<result xmlns="http://www.ietf.org/xml/ns/mrcpv2" grammar="http://flight">
<interpretation confidence="0.6">
<input mode="speech">I want to go to Pittsburgh</input>
<input mode="voice">I want to go to Pittsburgh</input>
<instance>
<airline>
<to_city>Pittsburgh</to_city>
Expand All @@ -315,7 +315,7 @@ document.match? # => true
document.interpretations # => [
{
confidence: 0.6,
input: { mode: :speech, content: 'I want to go to Pittsburgh' },
input: { mode: :voice, content: 'I want to go to Pittsburgh' },
instance: { airline: { to_city: 'Pittsburgh' } }
},
{
Expand All @@ -326,7 +326,7 @@ document.interpretations # => [
]
document.best_interpretation # => {
confidence: 0.6,
input: { mode: :speech, content: 'I want to go to Pittsburgh' },
input: { mode: :voice, content: 'I want to go to Pittsburgh' },
instance: { airline: { to_city: 'Pittsburgh' } }
}
```
Expand Down

0 comments on commit 3ded493

Please sign in to comment.