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
This directory contains the [TypeSpec](https://typespec.io/) definitions for the Azure Voice Live WebSocket API.
3
+
> see https://aka.ms/autorest
4
4
5
-
## Overview
5
+
This directory contains the TypeSpec definitions for the Azure Voice Live WebSocket API.
6
6
7
-
Azure Voice Live is a managed service that enables low-latency, high-quality speech-to-speech interactions for voice agents. The API consolidates speech recognition, generative AI, and text-to-speech functionalities into a single, unified WebSocket interface, providing an end-to-end solution for creating seamless voice-driven experiences.
7
+
Azure Voice Live is a managed service that enables low-latency, high-quality speech-to-speech interactions for voice agents. The API consolidates speech recognition, generative AI, and text-to-speech functionalities into a single, unified WebSocket interface.
8
8
9
-
## API Description
9
+
## Getting Started
10
+
11
+
To build the SDKs for Azure Voice Live, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
12
+
13
+
> `autorest readme.md`
14
+
15
+
To see additional help and options, run:
16
+
17
+
> `autorest --help`
18
+
19
+
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
20
+
21
+
---
22
+
23
+
## Configuration
24
+
25
+
### Basic Information
26
+
27
+
```yaml
28
+
title: Azure Voice Live WebSocket API
29
+
description: Azure Voice Live is a managed service for real-time speech-to-speech interactions via WebSocket
30
+
openapi-type: data-plane
31
+
tag: package-2025-10-01
32
+
```
33
+
34
+
```yaml $(tag) == 'package-2025-10-01'
35
+
input-file:
36
+
- stable/2025-10-01/voicelive.json
37
+
```
38
+
39
+
### Directive Configuration
40
+
41
+
```yaml
42
+
directive:
43
+
# Configure discriminators for polymorphic event models
44
+
- from: swagger-document
45
+
where: $.definitions.ClientEvent
46
+
transform: >
47
+
$["x-ms-discriminator"] = {
48
+
"propertyName": "type"
49
+
};
50
+
51
+
- from: swagger-document
52
+
where: $.definitions.ServerEvent
53
+
transform: >
54
+
$["x-ms-discriminator"] = {
55
+
"propertyName": "type"
56
+
};
57
+
58
+
# Mark streaming properties
59
+
- where: $.definitions..properties.audio
60
+
set:
61
+
x-ms-stream: true
62
+
format: byte
63
+
64
+
# Configure enum types
65
+
- from: swagger-document
66
+
where: $.definitions[?(@.enum)]
67
+
transform: >
68
+
$["x-ms-enum"] = {
69
+
"modelAsString": true
70
+
};
71
+
```
10
72
11
-
The Voice Live API uses WebSocket connections for real-time, bidirectional communication between clients and the service. This TypeSpec defines:
73
+
---
74
+
75
+
## CSharp
76
+
77
+
These settings apply only when `--csharp` is specified on the command line.
78
+
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.
├── operations.tsp # API operations and versioning
194
+
├── custom.tsp # Custom type definitions
195
+
├── websocket.tsp # WebSocket endpoint definition
196
+
├── events.tsp # Event definitions
197
+
├── items.tsp # Item models
198
+
├── tools.tsp # Tool definitions
199
+
├── content_parts.tsp # Content part models
200
+
└── tspconfig.yaml # TypeSpec configuration
201
+
```
124
202
125
203
## Related Documentation
126
204
127
205
- [Azure AI Voice Live Documentation](https://docs.microsoft.com/azure/ai-services/)
128
206
- [TypeSpec Documentation](https://typespec.io/)
129
207
- [Azure AI Foundry](https://azure.microsoft.com/products/ai-studio/)
130
-
131
-
## Contributing
132
-
133
-
This project welcomes contributions and suggestions. Please see the [Azure SDK Contributing Guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md) for more information.
0 commit comments