You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use Custom Spelling, pass a dictionary to `set_custom_spelling()` on the transcription config. Each key-value pair specifies a mapping from a word or phrase to a new spelling or format. The key specifies the new spelling or format, and the corresponding value is the word or phrase you want to replace.
10
10
11
-
```python maxLines=15
11
+
```pythonhighlight={9-14} maxLines=15
12
12
import assemblyai as aai
13
13
14
14
aai.settings.api_key ="<YOUR_API_KEY>"
@@ -36,7 +36,7 @@ print(transcript.text)
36
36
<Tablanguage="python"title="Python">
37
37
To use Custom Spelling, include `custom_spelling` in your transcription parameters. The parameter should be a list of dictionaries, with each dictionary specifying a mapping from a word or phrase to a new spelling or format.
To use Custom Spelling, include `custom_spelling` in your transcription parameters. The parameter should be an array of objects, with each object specifying a mapping from a word or phrase to a new spelling or format.
93
93
94
-
```ts maxLines=15
94
+
```tshighlight={13-22} maxLines=15
95
95
import { AssemblyAI } from'assemblyai'
96
96
97
97
const client =newAssemblyAI({
@@ -128,7 +128,7 @@ run()
128
128
</Tab>
129
129
<Tablanguage="typescript"title="TypeScript">
130
130
To use Custom Spelling, include `custom_spelling` in your transcription parameters. The parameter should be an array of objects, with each object specifying a mapping from a word or phrase to a new spelling or format.
131
-
```ts maxLines=15
131
+
```tshighlight={19-28} maxLines=15
132
132
importaxiosfrom'axios'
133
133
importfsfrom'fs-extra'
134
134
@@ -186,7 +186,7 @@ while (true) {
186
186
</Tab>
187
187
<Tablanguage="csharp"title="C#">
188
188
To use Custom Spelling, include `custom_spelling` in your transcription request. The parameter should be an array of objects, with each object specifying a mapping from a word or phrase to a new spelling or format.
189
-
```csharp maxLines=15
189
+
```csharphighlight={37-46} maxLines=15
190
190
usingSystem;
191
191
usingSystem.IO;
192
192
usingSystem.Net.Http;
@@ -282,7 +282,7 @@ using (var httpClient = new HttpClient())
282
282
</Tab>
283
283
<Tablanguage="ruby"title="Ruby">
284
284
To use Custom Spelling, include `custom_spelling` in your transcription parameters. The parameter should be an array of hashes, with each hash specifying a mapping from a word or phrase to a new spelling or format.
285
-
```ruby maxLines=15
285
+
```rubyhighlight={23-32} maxLines=15
286
286
require'net/http'
287
287
require'json'
288
288
@@ -358,7 +358,7 @@ end
358
358
</Tab>
359
359
<Tablanguage="php"title="PHP">
360
360
To use Custom Spelling, include `custom_spelling` in your transcription parameters. The parameter should be an array of arrays, with each inner array specifying a mapping from a word or phrase to a new spelling or format.
0 commit comments