-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
153 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,38 @@ | ||
# Groq Voice SDK (Sketch) | ||
|
||
This project establishes the main interface for Groq + Daily. | ||
## Install | ||
|
||
We're using a vanilla Typescript application (served with Vite) for local testing. | ||
```bash | ||
# Install dependencies & link packages | ||
yarn | ||
# Build voice-sdk | ||
yarn workspace @realtime-ai/voice-sdk build | ||
# Build voice-sdk-react | ||
yarn workspace @realtime-ai/voice-sdk-react build | ||
``` | ||
|
||
Entry point: `src/main.ts` | ||
SDK: `src/groq-voice-sdk` | ||
## Bump and publish voice-sdk | ||
|
||
```bash | ||
# Bump version | ||
yarn workspace @realtime-ai/voice-sdk version --patch/--minor/--major --message "Bump voice-sdk version" | ||
# Build | ||
yarn workspace @realtime-ai/voice-sdk build | ||
# Verify package content | ||
npm pack --dry-run --workspace=@realtime-ai/voice-sdk | ||
# Publish package | ||
npm publish --workspace=@realtime-ai/voice-sdk | ||
``` | ||
|
||
## Bump and publish voice-sdk-react | ||
|
||
```bash | ||
# Bump version | ||
yarn workspace @realtime-ai/voice-sdk-react version --patch/--minor/--major --message "Bump voice-sdk version" | ||
# Build | ||
yarn workspace @realtime-ai/voice-sdk-react build | ||
# Verify package content | ||
npm pack --dry-run --workspace=@realtime-ai/voice-sdk-react | ||
# Publish package | ||
npm publish --workspace=@realtime-ai/voice-sdk-react | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Real-Time Voice Inference SDK Demo | ||
|
||
## Run dev server | ||
|
||
```bash | ||
yarn dev | ||
# or from project root | ||
yarn workspace voice-demo dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Real-Time Voice Inference React SDK | ||
|
||
tbd. | ||
|
||
## Install | ||
|
||
```bash | ||
yarn add voice-sdk voice-sdk-react | ||
# or | ||
npm install voice-sdk voice-sdk-react | ||
``` | ||
|
||
## Getting started | ||
|
||
```tsx | ||
import { VoiceClient } from "@realtime-ai/voice-sdk"; | ||
import { | ||
useVoiceClient, | ||
VoiceClientProvider, | ||
} from "@realtime-ai/voice-sdk-react"; | ||
|
||
const voiceClient = new VoiceClient({ | ||
apiKey: "…", | ||
enableMic: true, | ||
}); | ||
|
||
render( | ||
<VoiceClientProvider voiceClient={voiceClient}> | ||
<MyVoiceApp /> | ||
</VoiceClientProvider> | ||
); | ||
|
||
const MyVoiceApp = () => { | ||
const voiceClient = useVoiceClient(); | ||
|
||
return ( | ||
<> | ||
<button onClick={() => voiceClient?.start()}>Talk to a bot</button> | ||
</> | ||
); | ||
}; | ||
``` | ||
|
||
## Advanced configuration | ||
|
||
tbd. | ||
|
||
## Contributing | ||
|
||
tbd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Real-Time Voice Inference SDK | ||
|
||
tbd. | ||
|
||
## Install | ||
|
||
```bash | ||
yarn add voice-sdk | ||
# or | ||
npm install voice-sdk | ||
``` | ||
|
||
## Getting started | ||
|
||
```ts | ||
import { VoiceClient } from "@realtime-ai/voice-sdk"; | ||
|
||
const voiceClient = new VoiceClient({ | ||
apiKey: "…", | ||
enableMic: true, | ||
}); | ||
|
||
voiceClient.start(); | ||
``` | ||
|
||
## Advanced configuration | ||
|
||
tbd. | ||
|
||
## Contributing | ||
|
||
tbd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters