aoai-realtime-audio-sdk
Azure OpenAI code resources for using gpt-4o-realtime capabilities.
File Explorer
Download Latest Version (.zip)- devcontainer.json
- init.sh
- CODE_OF_CONDUCT.md
- dependabot.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- nuget.config
- Program.cs
- README.md
- RealtimeConsoleApp.csproj
- RealtimeConsoleApp.sln
- MicrophoneAudioStream.cs
- Program.cs
- README.md
- RealtimeInteractiveConsole.csproj
- SpeakerOutput.cs
- .gitignore
- audio_hello_world.wav
- audio_weather_alaw.wav
- README.md
- .gitignore
- README.md
- gradle-wrapper.jar
- gradle-wrapper.properties
- libs.versions.toml
- AudioFile.java
- Main.java
- .gitattributes
- .gitignore
- build.gradle.kts
- gradle.properties
- gradlew
- gradlew.bat
- settings.gradle.kts
- whats_the_weather_pcm16_24khz_mono.wav
- audio-worklet-processor.js
- playback-worklet.js
- vite.svg
- main.ts
- player.ts
- recorder.ts
- style.css
- vite-env.d.ts
- .gitignore
- index.html
- package-lock.json
- package.json
- readme.md
- tsconfig.json
- download-pkg.ps1
- download-pkg.sh
- readme.md
- auth.ts
- connection-settings-browser.ts
- connection-settings.ts
- crypto.ts
- interfaces.ts
- message_queue.ts
- websocket-browser.ts
- websocket-client.ts
- websocket.ts
- client.ts
- index.ts
- model-utils.ts
- models.ts
- arc-easy-q237-tts.raw
- tell_me_the_weather.raw
- message-queue.spec.ts
- message-queue2.spec.ts
- websocket-client.spec.ts
- client.node.spec.ts
- client.spec.ts
- file-utils-browser.ts
- file-utils.ts
- model-utils.spec.ts
- test-util.ts
- .gitignore
- package-lock.json
- package.json
- rollup.config.mjs
- vitest.workspace.mts
- id_generator.py
- id_generator_test.py
- message_queue.py
- message_queue_test.py
- model_helpers.py
- model_helpers_test.py
- user_agent.py
- user_agent_test.py
- __init__.py
- client_test.py
- defaults.py
- low_level_client.py
- models.py
- arc-easy-q237-tts.flac
- arc-easy-q237-tts.mp3
- arc-easy-q237-tts.ogg
- arc-easy-q237-tts.raw
- arc-easy-q237-tts.wav
- client_sample.py
- client_sample_no_vad.py
- development.env
- download-wheel.ps1
- download-wheel.sh
- low_level_sample.py
- README.md
- requirements.txt
- sample_text_input.py
- 1-tardigrades.wav
- .gitignore
- poetry.lock
- pyproject.toml
- audio-processor.js
- icon.svg
- GeistMonoVF.woff
- GeistVF.woff
- chat-interface.tsx
- globals.css
- layout.tsx
- page.tsx
- accordion.tsx
- button.tsx
- card.tsx
- input.tsx
- select.tsx
- slider.tsx
- switch.tsx
- audio.ts
- utils.ts
- .eslintrc.json
- .gitignore
- components.json
- next-env.d.ts
- next.config.ts
- package-lock.json
- package.json
- postcss.config.mjs
- README.md
- tailwind.config.ts
- tsconfig.json
- ClientMessage.cs
- ClientReceivableMessage.cs
- ClientSendableMessage.cs
- RealtimeMiddleTierController.cs
- launchSettings.json
- default.html
- appsettings.Development.json
- appsettings.json
- AspNetCoreMvcRealtimeMiddletier.csproj
- AspNetCoreMvcRealtimeMiddletier.sln
- Program.cs
- README.md
- icon.svg
- playback-worklet.js
- record-worklet.js
- GeistMonoVF.woff
- GeistVF.woff
- chat-interface.tsx
- globals.css
- layout.tsx
- page.tsx
- accordion.tsx
- button.tsx
- card.tsx
- input.tsx
- select.tsx
- slider.tsx
- switch.tsx
- audio.ts
- client.ts
- utils.ts
- .eslintrc.json
- .gitignore
- components.json
- next-env.d.ts
- next.config.ts
- package-lock.json
- package.json
- postcss.config.mjs
- README.md
- tailwind.config.ts
- tsconfig.json
- app.ts
- session.ts
- .gitignore
- package-lock.json
- package.json
- README.md
- tsconfig.json
- main.py
- .gitignore
- poetry.lock
- pyproject.toml
- README.md
- gradle-wrapper.jar
- gradle-wrapper.properties
- AzureOpenAIConfiguration.java
- OpenAIConfiguration.java
- RealtimeClientProvider.java
- RealtimeAudioHandler.java
- ControlMessage.java
- MessageType.java
- TextDeltaMessage.java
- TranscriptionMessage.java
- UserMessage.java
- SpringBackendApplication.java
- WebSocketConfiguration.java
- application.properties
- SpringBackendApplicationTests.java
- .gitattributes
- .gitignore
- build.gradle
- gradle-task-panel.png
- gradlew
- gradlew.bat
- README.md
- run-config.png
- settings.gradle
- README.md
- .gitignore
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE.md
- README.md
- realtime-openapi3.yml
# Installation Guide
1. Get the code
git clone https://github.com/Azure-Samples/aoai-realtime-audio-sdk
Downloads the entire project code from GitHub to your computer.
cd aoai-realtime-audio-sdk
Moves into the project folder you just downloaded.
2. Gradle (Java/Kotlin)
Medium RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java/Kotlin projects.
- Gradle If the repo includes gradlew (Gradle Wrapper), you don't need to install Gradle separately.
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd java/console
This project's files live in a subfolder, so move into it first.
./gradlew build
Builds the project using Gradle.
A BUILD SUCCESSFUL message means it worked. The output is created under build/.
3. Node.js
EasyPrerequisites
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd javascript/standalone
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
4. Python
EasyPrerequisites
pip install .
Installs the package published on PyPI directly β no need to clone the source.
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
