@ai-sdk/deepgram 3.1.37 → 3.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +3 -49
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ai-sdk/deepgram
|
|
2
2
|
|
|
3
|
+
## 3.1.39
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e729d58: chore(docs): update `README.md` for consistent format and to avoid duplication
|
|
8
|
+
- Updated dependencies [5475347]
|
|
9
|
+
- Updated dependencies [e729d58]
|
|
10
|
+
- @ai-sdk/provider@4.0.34
|
|
11
|
+
- @ai-sdk/provider-utils@5.0.68
|
|
12
|
+
|
|
13
|
+
## 3.1.38
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [8202f5b]
|
|
18
|
+
- Updated dependencies [85d84a1]
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.67
|
|
20
|
+
- @ai-sdk/provider@4.0.33
|
|
21
|
+
|
|
3
22
|
## 3.1.37
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -7,10 +7,8 @@ contains transcription model support for the Deepgram transcription API and spee
|
|
|
7
7
|
|
|
8
8
|
## Setup
|
|
9
9
|
|
|
10
|
-
The Deepgram provider is available in the `@ai-sdk/deepgram` module. You can install it with
|
|
11
|
-
|
|
12
10
|
```bash
|
|
13
|
-
npm i @ai-sdk/deepgram
|
|
11
|
+
npm i ai @ai-sdk/deepgram
|
|
14
12
|
```
|
|
15
13
|
|
|
16
14
|
## Skill for Coding Agents
|
|
@@ -21,17 +19,7 @@ If you use coding agents such as Claude Code or Cursor, we highly recommend addi
|
|
|
21
19
|
npx skills add vercel/ai
|
|
22
20
|
```
|
|
23
21
|
|
|
24
|
-
##
|
|
25
|
-
|
|
26
|
-
You can import the default provider instance `deepgram` from `@ai-sdk/deepgram`:
|
|
27
|
-
|
|
28
|
-
```ts
|
|
29
|
-
import { deepgram } from '@ai-sdk/deepgram';
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Examples
|
|
33
|
-
|
|
34
|
-
### Transcription
|
|
22
|
+
## Usage
|
|
35
23
|
|
|
36
24
|
```ts
|
|
37
25
|
import { deepgram } from '@ai-sdk/deepgram';
|
|
@@ -45,38 +33,4 @@ const { text } = await transcribe({
|
|
|
45
33
|
});
|
|
46
34
|
```
|
|
47
35
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
```ts
|
|
51
|
-
import { deepgram } from '@ai-sdk/deepgram';
|
|
52
|
-
import { transcribe } from 'ai';
|
|
53
|
-
|
|
54
|
-
const { text, language } = await transcribe({
|
|
55
|
-
model: deepgram.transcription('nova-3'),
|
|
56
|
-
audio: new URL(
|
|
57
|
-
'https://github.com/vercel/ai/raw/refs/heads/main/examples/ai-functions/data/galileo.mp3',
|
|
58
|
-
),
|
|
59
|
-
providerOptions: {
|
|
60
|
-
deepgram: {
|
|
61
|
-
detectLanguage: true,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Text-to-Speech
|
|
68
|
-
|
|
69
|
-
```ts
|
|
70
|
-
import { deepgram } from '@ai-sdk/deepgram';
|
|
71
|
-
import { generateSpeech } from 'ai';
|
|
72
|
-
|
|
73
|
-
const { audio } = await generateSpeech({
|
|
74
|
-
model: deepgram.speech('aura-2'),
|
|
75
|
-
voice: 'helena',
|
|
76
|
-
text: 'Hello, welcome to Deepgram!',
|
|
77
|
-
});
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Documentation
|
|
81
|
-
|
|
82
|
-
Please check out the **[Deepgram provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/deepgram)** for more information.
|
|
36
|
+
See the [Deepgram Provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/deepgram) for more information.
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/deepgram",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/provider": "4.0.
|
|
33
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
32
|
+
"@ai-sdk/provider": "4.0.34",
|
|
33
|
+
"@ai-sdk/provider-utils": "5.0.68"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@ai-sdk/test-server": "2.0.4",
|