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
feat: scroll to highlighted lines in code blocks (#201)
* add custom js
* test with ald
* add custom js
* add highlights to pre-recorded audio
* add highlight to transcript-status/php
* add highlight to select-speech-model/python
* add highlights to select-speech-model
* add highlight to select-language/c#
* add highlights to speaker labels
* more highlighting fixes
* fix: add missing highlights in some code snippets
* fix: minor adjustment to detecting low confidence words cookbook which was adjusted in cookbook repo
---------
Co-authored-by: Amanda DiNoto <[email protected]>
Copy file name to clipboardexpand all lines: cookbook-master/core-transcription/detecting-low-confidence-words.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ const client = new AssemblyAI({
23
23
Next create the transcript with your audio file, either via local audio file or URL (AssemblyAI's servers need to be able to access the URL, make sure the URL links to a downloadable file).
Copy file name to clipboardexpand all lines: fern/docs.yml
+2
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ js:
8
8
strategy: beforeInteractive
9
9
- path: ./pre-recorded-audio-redirect.js
10
10
strategy: beforeInteractive
11
+
- path: ./scroll-highlighted-lines.js
12
+
strategy: afterInteractive
11
13
announcement:
12
14
message: '🗝️ Multiple API keys and Projects are now available 🎉 (<a href="/docs/deployment/account-management" target="_blank" style="color: white;">Learn more</a>)'
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
11
+
```python highlight={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
94
+
```ts highlight={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
131
+
```ts highlight={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
189
+
```csharp highlight={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
285
+
```ruby highlight={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