Skip to content

Commit b04a007

Browse files
authored
Add files via upload
1 parent 9bcdc27 commit b04a007

File tree

30 files changed

+15735
-0
lines changed

30 files changed

+15735
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Voice Live API Browser Sample
2+
3+
A Next.js-based chat application demonstrating the usage of the Voice Live API.
4+
5+
## Live Demo
6+
7+
Try the [Live Demo](https://aka.ms/voice-agent/demo).
8+
9+
## Features
10+
11+
- 🔄 Real-time speech conversations
12+
- 🛠️ Configurable conversation settings
13+
14+
## Prerequisites
15+
16+
- Node.js (version 18 or higher)
17+
- npm or yarn
18+
19+
## Getting Started
20+
21+
1. Clone the repository:
22+
```bash
23+
git clone <repository-url>
24+
cd <project-directory>
25+
```
26+
27+
2. Install dependencies:
28+
```bash
29+
npm install
30+
# or
31+
yarn install
32+
```
33+
34+
3. Start the development server:
35+
```bash
36+
npm run dev
37+
# or
38+
yarn dev
39+
```
40+
41+
4. Open [http://localhost:3000](http://localhost:3000) in your browser.
42+
43+
> Note: the `rt-client` package is a modified version, source code is available in [this repo](https://github.com/yulin-li/aoai-realtime-audio-sdk/tree/feature/voice-agent/javascript/standalone)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
output: 'export',
5+
webpack: (config, { isServer }) => {
6+
if (isServer) {
7+
config.resolve.fallback = {
8+
...config.resolve.fallback,
9+
bufferutil: false,
10+
'utf-8-validate': false,
11+
};
12+
}
13+
return config;
14+
},
15+
};
16+
17+
export default nextConfig;

0 commit comments

Comments
 (0)