Skip to content

Commit 5422c5b

Browse files
leibaogitwatson-github-bot
authored andcommitted
Update the option keyname to camelcase
1 parent 50156b5 commit 5422c5b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

views/demo.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ export class Demo extends Component {
105105
const keywords = this.getKeywordsArrUnique();
106106
return Object.assign({
107107
// formats phone numbers, currency, etc. (server-side)
108-
access_token: this.state.accessToken,
108+
accessToken: this.state.accessToken,
109109
token: this.state.token,
110-
smart_formatting: true,
110+
smartFormatting: true,
111111
format: true, // adds capitals, periods, and a few other things (client-side)
112112
model: this.state.model,
113113
objectMode: true,
114-
interim_results: true,
114+
interimResults: true,
115115
// note: in normal usage, you'd probably set this a bit higher
116-
word_alternatives_threshold: 0.01,
116+
wordAlternatives_threshold: 0.01,
117117
keywords,
118-
keywords_threshold: keywords.length
118+
keywordsThreshold: keywords.length
119119
? 0.01
120120
: undefined, // note: in normal usage, you'd probably set this a bit higher
121121
timestamps: true, // set timestamps for each word - automatically turned on by speaker_labels
122122
// includes the speaker_labels in separate objects unless resultsBySpeaker is enabled
123-
speaker_labels: this.state.speakerLabels,
123+
speakerLabels: this.state.speakerLabels,
124124
// combines speaker_labels and results together into single objects,
125125
// making for easier transcript outputting
126126
resultsBySpeaker: this.state.speakerLabels,
@@ -499,7 +499,7 @@ export class Demo extends Component {
499499
<p>Voice Model:
500500
<ModelDropdown
501501
model={model}
502-
token={token || accessToken}
502+
accessToken={token || accessToken}
503503
onChange={this.handleModelChange}
504504
/>
505505
</p>

0 commit comments

Comments
 (0)