找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[MA35D1] Implementing Real-time Voice-based ChatGPT

[复制链接]
跳转到指定楼层
楼主
admin 发表于 昨天 11:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Application
On the Nuvoton OpenWrt platform, this project leverages the OpenAI Realtime API to implement a real-time, voice-interactive ChatGPT that supports both voice input and voice output, delivering a natural and smooth conversational experience.
BSP Version
MA35D1 Series OpenWrt 22.03
Hardware
NuMaker-IoT-MA35D16F90 V2.4

This example code demonstrates how to build a real-time, voice-interactive conversation system on the Nuvoton OpenWrt embedded platform using Python and WebSocket technologies, integrated with OpenAI’s latest Realtime API. After a user speaks into a microphone, the device records and uploads the audio in real time. The OpenAI model then quickly generates a voice response, which is immediately played back by the system, making human-computer interaction more natural, fast, and intuitive.

This low-latency interaction capability enables embedded platforms to support applications such as intelligent voice assistants, voice-based customer service, and educational chatbots. Even on resource-constrained devices, leveraging cloud-based AI allows for a voice interaction experience comparable to that of high-end devices like smartphones.

This example code is developed based on the Nuvoton OpenWrt 22.03 environment. You must first set up the Nuvoton OpenWrt 22.03 development environment (https://github.com/OpenNuvoton/Nuvoton-OpenWrt-22.03) before running this example.

While this document uses the NuMaker-IoT-MA35D16F90 evaluation board as an example, the content applies to any evaluation board that supports Nuvoton OpenWrt 22.03 and can run Python smoothly, including the MA35D0, MA35D1, and MA35H0 series.

You can download the sample code at EC_MA35D1_Real-time_Voice-based_ChatGPT_V1.00


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU