From ded73c2791b41ce039be11a6672b89114e72efb8 Mon Sep 17 00:00:00 2001 From: tiansztiansz <18664140675@163.com> Date: Wed, 31 May 2023 23:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=92=8C=E6=9B=B4=E6=96=B0=E8=87=AA=E8=BF=B0=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 46 +++--------------- _snowboydetect.so => src/_snowboydetect.so | Bin app.py => src/app.py | 0 chatyuan.py => src/chatyuan.py | 0 {resources => src/resources}/common.res | Bin {resources => src/resources}/ding.wav | Bin {resources => src/resources}/music.mp3 | Bin {resources => src/resources}/music_list.csv | 0 {resources => src/resources}/sst.wav | Bin {resources => src/resources}/tts.mp3 | Bin .../resources}/xiaozhixiaozhi.pmdl | Bin .../snowboy-detect-swig.cc | 0 .../snowboy-detect-swig.i | 0 .../snowboy-detect-swig.o | Bin snowboydecoder.py => src/snowboydecoder.py | 0 snowboydetect.py => src/snowboydetect.py | 0 tts.py => src/tts.py | 0 whisper.py => src/whisper.py | 0 18 files changed, 6 insertions(+), 40 deletions(-) rename _snowboydetect.so => src/_snowboydetect.so (100%) rename app.py => src/app.py (100%) rename chatyuan.py => src/chatyuan.py (100%) rename {resources => src/resources}/common.res (100%) rename {resources => src/resources}/ding.wav (100%) rename {resources => src/resources}/music.mp3 (100%) rename {resources => src/resources}/music_list.csv (100%) rename {resources => src/resources}/sst.wav (100%) rename {resources => src/resources}/tts.mp3 (100%) rename {resources => src/resources}/xiaozhixiaozhi.pmdl (100%) rename snowboy-detect-swig.cc => src/snowboy-detect-swig.cc (100%) rename snowboy-detect-swig.i => src/snowboy-detect-swig.i (100%) rename snowboy-detect-swig.o => src/snowboy-detect-swig.o (100%) rename snowboydecoder.py => src/snowboydecoder.py (100%) rename snowboydetect.py => src/snowboydetect.py (100%) rename tts.py => src/tts.py (100%) rename whisper.py => src/whisper.py (100%) diff --git a/readme.md b/readme.md index 02712e2..0c0d162 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@

- + 捐赠     @@ -17,6 +17,9 @@     kaggle +     + + huggingface

@@ -45,7 +48,7 @@ pip install -r requirements.txt ``` 接着运行主程序: ```bash -python3 app.py +python3 src/app.py ``` 当你看到程序显示“等待唤醒”字样时,则表明你已成功运行了程序! @@ -56,43 +59,6 @@ python3 app.py
-## 目录结构 - -``` -. -├── LICENSE # 协议 -├── _snowboydetect.so # 依赖文件 -├── app.py # 主程序 -├── chatyuan.py # 聊天模块 -├── readme.md # 自述文件 -├── requirements.txt # 依赖包 -├── resources -│ ├── common.res # 依赖文件 -│ ├── ding.wav # 唤醒时的启动音频 -│ ├── music.mp3 # 音乐文件 -│ ├── music_list.csv # 音乐下载链接 -│ ├── sst.wav # 语音转文本的音频 -│ ├── tts.mp3 # 文本转语音的音频 -│ └── xiaozhixiaozhi.pmdl # 唤醒模型 -├── snowboy-detect-swig.cc # 依赖文件 -├── snowboy-detect-swig.i # 依赖文件 -├── snowboy-detect-swig.o # 依赖文件 -├── snowboydecoder.py # 唤醒模块 -├── snowboydetect.py # 唤醒模块 -├── src # 其他文件夹 -│ ├── BILIBILI_LOGO.svg -│ ├── kaggle.svg -│ ├── license.svg -│ ├── 博客园.jpg -│ ├── 抖音.svg -│ ├── 捐赠.svg -│ └── 语音助手显示视频.gif -├── tts.py # 文字转语音模块 -└── whisper.py # 语音转文本模块 -``` - - -
## 智能音箱实现 可在淘宝购买【带麦克风】的蓝牙音箱,连接电脑后即可实现智能音箱的效果。 @@ -136,6 +102,6 @@ python3 app.py 如果这个项目对你有帮助,请给一个⭐️! -如果资金充裕,能否考虑请小弟喝杯[奶茶🧋](https://github.com/tiansztiansz/tiansztiansz/blob/main/wechat_alipay.png) +如果资金充裕,能否考虑请小弟喝杯[奶茶](https://www.cnblogs.com/tiansz/p/17318568.html)🧋 diff --git a/_snowboydetect.so b/src/_snowboydetect.so similarity index 100% rename from _snowboydetect.so rename to src/_snowboydetect.so diff --git a/app.py b/src/app.py similarity index 100% rename from app.py rename to src/app.py diff --git a/chatyuan.py b/src/chatyuan.py similarity index 100% rename from chatyuan.py rename to src/chatyuan.py diff --git a/resources/common.res b/src/resources/common.res similarity index 100% rename from resources/common.res rename to src/resources/common.res diff --git a/resources/ding.wav b/src/resources/ding.wav similarity index 100% rename from resources/ding.wav rename to src/resources/ding.wav diff --git a/resources/music.mp3 b/src/resources/music.mp3 similarity index 100% rename from resources/music.mp3 rename to src/resources/music.mp3 diff --git a/resources/music_list.csv b/src/resources/music_list.csv similarity index 100% rename from resources/music_list.csv rename to src/resources/music_list.csv diff --git a/resources/sst.wav b/src/resources/sst.wav similarity index 100% rename from resources/sst.wav rename to src/resources/sst.wav diff --git a/resources/tts.mp3 b/src/resources/tts.mp3 similarity index 100% rename from resources/tts.mp3 rename to src/resources/tts.mp3 diff --git a/resources/xiaozhixiaozhi.pmdl b/src/resources/xiaozhixiaozhi.pmdl similarity index 100% rename from resources/xiaozhixiaozhi.pmdl rename to src/resources/xiaozhixiaozhi.pmdl diff --git a/snowboy-detect-swig.cc b/src/snowboy-detect-swig.cc similarity index 100% rename from snowboy-detect-swig.cc rename to src/snowboy-detect-swig.cc diff --git a/snowboy-detect-swig.i b/src/snowboy-detect-swig.i similarity index 100% rename from snowboy-detect-swig.i rename to src/snowboy-detect-swig.i diff --git a/snowboy-detect-swig.o b/src/snowboy-detect-swig.o similarity index 100% rename from snowboy-detect-swig.o rename to src/snowboy-detect-swig.o diff --git a/snowboydecoder.py b/src/snowboydecoder.py similarity index 100% rename from snowboydecoder.py rename to src/snowboydecoder.py diff --git a/snowboydetect.py b/src/snowboydetect.py similarity index 100% rename from snowboydetect.py rename to src/snowboydetect.py diff --git a/tts.py b/src/tts.py similarity index 100% rename from tts.py rename to src/tts.py diff --git a/whisper.py b/src/whisper.py similarity index 100% rename from whisper.py rename to src/whisper.py