{"id":38213220,"url":"https://github.com/tsjdev-apps/santaclaus-realtime-api","last_synced_at":"2026-01-17T00:45:17.279Z","repository":{"id":267923324,"uuid":"901472761","full_name":"tsjdev-apps/santaclaus-realtime-api","owner":"tsjdev-apps","description":"Simple .NET console application to demonstrate the GPT Realtime API by 'calling' Santa Claus.","archived":false,"fork":false,"pushed_at":"2025-12-04T08:26:40.000Z","size":1399,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-07T15:52:26.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsjdev-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tsjdev-apps"}},"created_at":"2024-12-10T18:11:22.000Z","updated_at":"2025-12-04T08:27:29.000Z","dependencies_parsed_at":"2024-12-13T09:28:45.146Z","dependency_job_id":"155bf031-4f39-445d-bad3-f296c9e88e98","html_url":"https://github.com/tsjdev-apps/santaclaus-realtime-api","commit_stats":null,"previous_names":["tsjdev-apps/santaclaus-realtime-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsjdev-apps/santaclaus-realtime-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fsantaclaus-realtime-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fsantaclaus-realtime-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fsantaclaus-realtime-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fsantaclaus-realtime-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsjdev-apps","download_url":"https://codeload.github.com/tsjdev-apps/santaclaus-realtime-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fsantaclaus-realtime-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T23:55:29.509Z","status":"ssl_error","status_checked_at":"2026-01-16T23:55:29.108Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T00:45:16.651Z","updated_at":"2026-01-17T00:45:17.256Z","avatar_url":"https://github.com/tsjdev-apps.png","language":"C#","funding_links":["https://github.com/sponsors/tsjdev-apps"],"categories":[],"sub_categories":[],"readme":"# Use the GPT Realtime (Mini) model to have a conversation with Santa Claus\n\n![header](/docs/header.png)\n\nThis repository provides a .NET 10 console application that integrates the GPT Realtime Model. The application demonstrates how to communicate using your voice.\n\n## Features\n\n- **GPT Realtime** or **GPT Realtime Mini**: AI Models to communicate using Text, Images or Audio.\n- **Modular Design**: Utilizes helper classes for streamlined code management and readability.\n\n## Prerequisites\n\n- [.NET 10 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/10.0)\n- [Visual Studio 2026](https://visualstudio.microsoft.com/) or any compatible IDE\n- [Azure.AI.OpenAI](https://www.nuget.org/packages/Azure.AI.OpenAI) NuGet package\n- [NAudio](https://www.nuget.org/packages/NAudio) NuGet package\n- [Spectre.Console](https://www.nuget.org/packages/Spectre.Console)NuGet package\n\n## Project Strucutre\n\n- `Program.cs`: Entry point of the application.\n- `Assets/wishes.json`: Data file containing wishes of several persons.\n- `Helpers/AudioInputHelper.cs`: Contains methods for getting the audio from the microphone.\n- `Helpers/AudioOutputHelper.cs`: Contains methods to play audio on the default speaker.\n- `Helpers/ConsoleHelper.cs`: Contains methods for enhanced console interactions using `Spectre.Console`.\n- `Helpers/FileHelper.cs`: Contains methods to read a local file.\n- `Models/WishItem.cs`: Model file for a specific *wish item*.\n- `Utils/ConversationFunctionToolStatics.cs`: Contains methods for custom *chat tools*.\n- `Utils/PromptStatics.cs`: Contains all the prompts used within the application.\n- `Utils/Statics.cs`: Provides static constants for various (Azure) OpenAI models and keys.\n\n## Usage\n\nUpon running the application, it will prompt you to enter your credentials. The application will then start listening to the microphone and you are able to interact with *Santa Claus*.\n\n## Application in Action\n\n[![Watch the video](https://img.youtube.com/vi/FLC59eeaBPg/maxresdefault.jpg)](https://youtu.be/FLC59eeaBPg)\n\n## Blog Posts\n\nIf you are more interested into details, please see the following posts on [medium.com](https://medium.com/@tsjdevapps) or in my [personal blog](https://www.tsjdev-apps.de):\n\n- [Use the GPT-4o Realtime model to have a conversation with Santa Claus](https://medium.com/medialesson/use-the-gpt-4o-realtime-model-to-have-a-conversation-with-santa-claus-08dd3ac4d97b)\n- [Einrichtung von OpenAI](https://www.tsjdev-apps.de/einrichtung-von-openai/)\n- [Einrichtung von Azure OpenAI](https://www.tsjdev-apps.de/einrichtung-von-azure-openai/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsjdev-apps%2Fsantaclaus-realtime-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsjdev-apps%2Fsantaclaus-realtime-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsjdev-apps%2Fsantaclaus-realtime-api/lists"}