-
Notifications
You must be signed in to change notification settings - Fork 1
Add Microsoft voice live service #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
32c16a9
Add a microsoft voice live service
pragmatrix 59d78e9
Support smart end of utterance detection
pragmatrix e9ce5b6
voice-live: Simplify serialization and remove SpeechCommitted and Spe…
pragmatrix 0eaf9b1
voice-live: Remove unused service output events, forward the full ses…
pragmatrix 4e0bdf8
Update openai-api-rs (clippy)
pragmatrix 34bba40
Potential fix for pull request finding
pragmatrix cc23962
Potential fix for pull request finding
pragmatrix 68c194b
voice-live: Don't clone the message if not needed
pragmatrix a8f1328
Fix borrow checker error
pragmatrix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ AirPods | |
| BCP | ||
| ContextSwitch | ||
| FreeSWITCH | ||
| VAD | ||
| alsa | ||
| inband | ||
| seekable | ||
|
|
||
This file contains hidden or 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,25 @@ | ||
| # Context | ||
|
|
||
| Glossary of canonical terms for context-switch. Keep this free of implementation | ||
| detail — it is a glossary, not a spec. | ||
|
|
||
| ## Speech provider terms | ||
|
|
||
| These three Microsoft offerings are distinct and must not all be called "Azure". | ||
|
|
||
| - **Azure Speech** — Microsoft's Azure AI Speech SDK service. In this repo it backs | ||
| the `azure` crate (`AzureTranscribe`, `AzureSynthesize`, ...). Classic | ||
| speech-to-text / text-to-speech. | ||
|
|
||
| - **Azure OpenAI Realtime** — the Azure-hosted variant of the OpenAI Realtime API. | ||
| Reached through `openai-dialog` with `Protocol::Azure`. A realtime | ||
| speech-to-speech dialog protocol over a single websocket. | ||
|
|
||
| - **Voice Live** — Microsoft Foundry's managed speech-to-speech API | ||
| (`/voice-live/realtime`). Wire-compatible with Azure OpenAI Realtime but adds | ||
| Azure-only capabilities (deep noise suppression, Azure semantic VAD, Azure | ||
| speech / MAI transcription models). Backed by the `microsoft-voice-live` crate. | ||
|
|
||
| Note: Voice Live and Azure OpenAI Realtime are expected to converge over time; | ||
| the `microsoft-voice-live` boundary is kept deliberately thin so the two can be | ||
| merged later without a rewrite. |
This file contains hidden or 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 hidden or 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 hidden or 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
Submodule openai-api-rs
updated
4 files
| +1 −1 | Cargo.toml | |
| +2 −1 | src/realtime/client_event.rs | |
| +34 −0 | src/realtime/server_event.rs | |
| +152 −0 | src/realtime/types.rs |
This file contains hidden or 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 hidden or 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 hidden or 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,22 @@ | ||
| [package] | ||
| name = "microsoft-voice-live" | ||
| version = "0.1.0" | ||
| edition.workspace = true | ||
|
|
||
| [dependencies] | ||
| context-switch-core = { workspace = true } | ||
|
|
||
| openai-api-rs = { workspace = true } | ||
|
|
||
| tokio-tungstenite = { version = "0.29.0", features = ["connect", "native-tls"] } | ||
|
|
||
| tracing = { workspace = true } | ||
|
|
||
| anyhow = { workspace = true } | ||
| futures = { workspace = true } | ||
| tokio = { workspace = true, features = ["net"] } | ||
| serde_json = { workspace = true } | ||
| base64 = { workspace = true } | ||
| serde = { workspace = true, features = ["derive"] } | ||
| async-trait = { workspace = true } | ||
| url = { workspace = true } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.