Skip to content

Commit c696bce

Browse files
committedMar 21, 2025
more highlighting fixes
1 parent 4fd27f7 commit c696bce

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed
 

‎fern/pages/02-speech-to-text/pre-recorded-audio/automatic-punctuation-and-casing.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can disable this behavior by setting `punctuate` and `format_text` to `False
88

99
<Tabs>
1010
<Tab language="python-sdk" title="Python SDK" default>
11-
```python maxLines=15
11+
```python highlight={8} maxLines=15
1212
import assemblyai as aai
1313

1414
aai.settings.api_key = "<YOUR_API_KEY>"
@@ -27,7 +27,7 @@ print(transcript.text)
2727
```
2828
</Tab>
2929
<Tab language="python" title="Python">
30-
```python maxLines=15
30+
```python highlight={19-20} maxLines=15
3131
import requests
3232
import time
3333

@@ -72,7 +72,7 @@ while True:
7272
```
7373
</Tab>
7474
<Tab language="typescript-sdk" title="TypeScript SDK" default>
75-
```ts maxLines=15
75+
```ts highlight={13-14} maxLines=15
7676
import { AssemblyAI } from 'assemblyai'
7777

7878
const client = new AssemblyAI({
@@ -99,7 +99,7 @@ run()
9999
```
100100
</Tab>
101101
<Tab language="typescript" title="TypeScript">
102-
```ts maxLines=15
102+
```ts highlight={19-20} maxLines=15
103103
import axios from 'axios'
104104
import fs from 'fs-extra'
105105

@@ -147,7 +147,7 @@ while (true) {
147147
```
148148
</Tab>
149149
<Tab language="csharp" title="C#">
150-
```csharp maxLines=15
150+
```csharp highlight={37} maxLines=15
151151
using System;
152152
using System.IO;
153153
using System.Net.Http;
@@ -233,7 +233,7 @@ using (var httpClient = new HttpClient())
233233
```
234234
</Tab>
235235
<Tab language="ruby" title="Ruby">
236-
```ruby maxLines=15
236+
```ruby highlight={23-24} maxLines=15
237237
require 'net/http'
238238
require 'json'
239239

@@ -300,7 +300,7 @@ end
300300
```
301301
</Tab>
302302
<Tab language="php" title="PHP">
303-
```php maxLines=15
303+
```php highlight={30-31} maxLines=15
304304
<?php
305305
$ch = curl_init();
306306
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

‎fern/pages/02-speech-to-text/pre-recorded-audio/custom-spelling.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Custom Spelling lets you customize how words are spelled or formatted in the tra
88
<Tab language="python-sdk" title="Python SDK" default>
99
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.
1010

11-
```python maxLines=15
11+
```python highlight={9-14} maxLines=15
1212
import assemblyai as aai
1313

1414
aai.settings.api_key = "<YOUR_API_KEY>"
@@ -36,7 +36,7 @@ print(transcript.text)
3636
<Tab language="python" title="Python">
3737
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.
3838

39-
```python maxLines=15
39+
```python highlight={19-28} maxLines=15
4040
import requests
4141
import time
4242

@@ -91,7 +91,7 @@ while True:
9191
<Tab language="typescript-sdk" title="TypeScript SDK" default>
9292
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.
9393

94-
```ts maxLines=15
94+
```ts highlight={13-22} maxLines=15
9595
import { AssemblyAI } from 'assemblyai'
9696

9797
const client = new AssemblyAI({
@@ -128,7 +128,7 @@ run()
128128
</Tab>
129129
<Tab language="typescript" title="TypeScript">
130130
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+
```ts highlight={19-28} maxLines=15
132132
import axios from 'axios'
133133
import fs from 'fs-extra'
134134

@@ -186,7 +186,7 @@ while (true) {
186186
</Tab>
187187
<Tab language="csharp" title="C#">
188188
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+
```csharp highlight={37-46} maxLines=15
190190
using System;
191191
using System.IO;
192192
using System.Net.Http;
@@ -282,7 +282,7 @@ using (var httpClient = new HttpClient())
282282
</Tab>
283283
<Tab language="ruby" title="Ruby">
284284
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+
```ruby highlight={23-32} maxLines=15
286286
require 'net/http'
287287
require 'json'
288288

@@ -358,7 +358,7 @@ end
358358
</Tab>
359359
<Tab language="php" title="PHP">
360360
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.
361-
```php maxLines=15
361+
```php highlight={30-39} maxLines=15
362362
<?php
363363
$ch = curl_init();
364364
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

‎fern/pages/02-speech-to-text/pre-recorded-audio/custom-vocabulary.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ while (true) {
152152

153153
```
154154

155-
```csharp title="C#" highlight={39} maxLines=15
155+
```csharp title="C#" highlight={37} maxLines=15
156156
using System;
157157
using System.IO;
158158
using System.Net.Http;

0 commit comments

Comments
 (0)