Skip to content

使用语音与chatgpt对话,调用tts-1,whisper-1,gpt-3.5-turbo。Converse with ChatGPT using voice, calling upon TTS-1, Whisper-1, and GPT-3.5-turbo..

License

Notifications You must be signed in to change notification settings

xy3xy3/VoiceChatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 23, 2023
13625a0 · Nov 23, 2023

History

10 Commits
Nov 23, 2023
Nov 23, 2023
Nov 23, 2023
Nov 21, 2023
Nov 23, 2023
Nov 22, 2023
Nov 23, 2023
Nov 23, 2023
Nov 23, 2023
Nov 23, 2023
Nov 23, 2023
Nov 21, 2023

Repository files navigation

English README

项目简介

这个项目是一个简单的 demo,它使用了 TTS-1、Whisper 和 GPT-3.5-turbo 来进行对话交互。

技术栈

  • 前端使用 bootstarpvue2recorder 进行构建。
  • 前台支持选择浏览器语音转文字(低延迟)或者调用 OpenAI 的 Whisper(高精度)。
  • 前台可以上传 mp3 格式文件到 PHP,通过调用 TTS 得到 opus 音频以保证效率。
  • 访问 clean.php 可以清理缓存文件。

修改与更新

  • 去除了 Composer 依赖,改为内置修改版的 OpenAI 库,同时加入了与 TTS 相关的函数。
  • 现在使用自定义简单函数获取 .env 变量。

部署教程

为了最佳效果,推荐使用 PHP 8.1。

  1. .env.example 修改为 .env,并配置其中的 OpenAI Key 和 URL(如果需要使用代理,则修改 URL)。

About

使用语音与chatgpt对话,调用tts-1,whisper-1,gpt-3.5-turbo。Converse with ChatGPT using voice, calling upon TTS-1, Whisper-1, and GPT-3.5-turbo..

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages