@copilotkit/voice 1.51.4-next.7 → 1.51.4
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 +12 -0
- package/README.md +9 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -5
- package/tsup.config.ts +5 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -29,11 +29,11 @@ Uses [OpenAI Whisper](https://platform.openai.com/docs/guides/speech-to-text) fo
|
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
31
|
new TranscriptionServiceOpenAI({
|
|
32
|
-
openai: new OpenAI({ apiKey: "..." }),
|
|
33
|
-
model: "whisper-1",
|
|
34
|
-
language: "en",
|
|
35
|
-
prompt: "Technical discussion context",
|
|
36
|
-
temperature: 0,
|
|
32
|
+
openai: new OpenAI({ apiKey: "..." }), // required
|
|
33
|
+
model: "whisper-1", // default
|
|
34
|
+
language: "en", // optional, ISO-639-1 code
|
|
35
|
+
prompt: "Technical discussion context", // optional, helps with domain terms
|
|
36
|
+
temperature: 0, // optional, 0 = deterministic
|
|
37
37
|
});
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -42,7 +42,10 @@ new TranscriptionServiceOpenAI({
|
|
|
42
42
|
Extend `TranscriptionService` from runtime:
|
|
43
43
|
|
|
44
44
|
```typescript
|
|
45
|
-
import {
|
|
45
|
+
import {
|
|
46
|
+
TranscriptionService,
|
|
47
|
+
TranscribeFileOptions,
|
|
48
|
+
} from "@copilotkitnext/runtime";
|
|
46
49
|
|
|
47
50
|
class MyTranscriptionService extends TranscriptionService {
|
|
48
51
|
async transcribeFile(options: TranscribeFileOptions): Promise<string> {
|