Skip to content

ba0956012/simple-ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-ai-agent

簡介

simple-ai-agent 功能:

  • 聲音監聽與處理
  • 語音轉文字(使用speech_recognition的google)
  • 關鍵字檢測與操作 (MiniLM 或是 Levenshtein)
  • 現場人數檢測 (yoloV5n)

環境需求

  • 系統: macOS (Apple Silicon, M1)
  • Python: 3.8
  • 環境管理工具: miniforge3

安裝步驟

1. 安裝 Conda

如果尚未安裝 Conda,請先安裝 miniforge3.

2. 創建 Conda 環境

conda create -n audio_ai_env python=3.8
conda activate audio_ai_env

3. 安裝requirements.txt

pip install -r requirements.txt

4. 安裝 cffi

在 Mac M1 上,cffi 需要通過 conda 安裝:

conda install cffi

使用方式

  1. 確保 .env 文件已設置(把.env.example改為.env,可自行調整參數)。
  2. 運行主程序,第一次執行需要等待下載模型(完成後,會出現提示訊息 INFO - 系統啟動,開始監聽...):
    python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages