【开源所有代码-全在线智能音箱】树莓派智能音箱,自定义唤醒词,大模型LLM GPT对话

  1. 安装sounddevice
pip install sounddevice
  1. 安装portAudio
sudo apt-get install libportaudio2

sudo apt-get install libasound-dev
sudo apt-get install portaudio.dev
sudo apt-get install python3-pyaudio
pip install pyaudio

  1. 安装wave
pip install wave
  1. 安装nls
    https://help.aliyun.com/zh/isi/developer-reference/stream-input-tts-sdk-quick-start
  2. 跑代码
# -*- coding: utf-8 -*-
#!/usr/bin/env python3

# Real-time keyword spotting from a microphone with sherpa-onnx Python

你可能感兴趣的:(服务器开发,人工智能,AI技术产品经理,智能音箱,gpt)