# dingdang-robot **Repository Path**: cxxowl/dingdang-robot ## Basic Information - **Project Name**: dingdang-robot - **Description**: 叮当是一款可以工作在 Raspberry Pi 上的中文语音对话机器人/智能音箱项目。 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-10 - **Last Updated**: 2024-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 叮当——中文语音对话机器人 ============= [![GitHub tag](https://img.shields.io/github/tag/wzpan/dingdang-robot.svg)](https://github.com/wzpan/dingdang-robot/releases) [![Travis](https://img.shields.io/travis/wzpan/dingdang-robot.svg)](https://travis-ci.org/wzpan/dingdang-robot) [![GitHub issues](https://img.shields.io/github/issues/wzpan/dingdang-robot.svg)](https://github.com/wzpan/dingdang-robot/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/wzpan/dingdang-robot.svg)](https://github.com/wzpan/dingdang-robot/pulls) [![GitHub pull requests](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/wzpan/dingdang-robot/blob/master/LICENSE) [![QQ群](https://img.shields.io/badge/QQ%E7%BE%A4-580447290-red.svg )](http://onmw7y6f4.bkt.clouddn.com/dingdang-group.png) 叮当是一款可以工作在 Raspberry Pi 上的开源中文语音对话机器人/智能音箱项目,目的是让中国的Hacker们也能快速打造个性化的智能音箱。
 
 
## Table of Contents * [特性](#特性) * [Demo](#demo) * [硬件要求](#硬件要求) * [安装](#安装) * [升级](#升级) * [配置](#配置) * [运行](#运行) * [插件](#插件) * [贡献](#贡献) * [联系](#联系) * [感谢](#感谢) * [FAQ](#faq) * [免责声明](#免责声明) ## 特性 叮当包括以下诸多特性: * 模块化。功能插件、语音识别、语音合成、对话机器人都做到了高度模块化,第三方插件单独维护,方便继承和开发自己的插件。 * 微信接入。支持接入微信,并通过微信远程操控自己家中的设备。 * 中文支持。支持百度语音识别和语音合成,未来还将支持接入其他的中文语音识别和合成。 * 对话机器人支持。支持接入图灵机器人,未来还将支持接入小黄鸭等其他对话机器人。 * 全局监听,离线唤醒。支持无接触地离线语音指令唤醒。 * 灵活可配置。支持定制机器人名字,支持选择语音识别和合成的插件。 ## Demo 详见 [Demo](https://github.com/wzpan/dingdang-robot/wiki/demo) ## 硬件要求 * Raspberry Pi 全系列,或其他 Linux 主机; * USB 麦克风(建议选购麦克风阵列); * 音箱(不建议蓝牙音箱); * 至少 8G 的 Micro-SD 内存卡(刷镜像的方式则要求至少16G,下个版本将会对镜像瘦身,降低要求); * 摄像头(可选,用于拍照)。 * 读卡器(可选,用于刷镜像进内存卡)。 如果不知道怎么选择,可以参考 [硬件选购建议](https://github.com/wzpan/dingdang-robot/wiki/hardware-choices) 。 ## 安装 ### 镜像安装 推荐使用镜像安装的方式,像安装 Raspbian 系统一样,安装完后,只需要少量的配置即可立即使用叮当机器人。 * [下载地址](https://github.com/wzpan/dingdang-robot/wiki/changelog) 镜像安装方法详见 [镜像安装](https://github.com/wzpan/dingdang-robot/wiki/install#%E9%95%9C%E5%83%8F%E5%AE%89%E8%A3%85) 。 刷完后记得在启动系统后进入 `raspi-config` 的高级选项中开启 Extend FileSystem,以让内存卡中的剩余空间合并到主分区中。 ### 手动安装 见 [手动安装](https://github.com/wzpan/dingdang-robot/wiki/install)。 ## 升级 ``` sh cd /home/pi/dingdang git pull ``` ## 配置 请参考 [配置](https://github.com/wzpan/dingdang-robot/wiki/configuration) 。 ## 运行 ``` sh python dingdang.py ``` 建议在 tmux 或 supervisor 中执行。 ## 插件 * [官方插件列表](https://github.com/wzpan/dingdang-robot/wiki/plugins) * [第三方插件](https://github.com/dingdang-robot/dingdang-contrib) ## 贡献 * 喜欢本项目请先打一颗星; * 提 bug 请到 [issue 页面](https://github.com/wzpan/dingdang-robot/issues); * 要贡献代码,欢迎 fork 之后再提 pull request; * 插件请提交到 [dingdang-contrib](https://github.com/dingdang-robot/dingdang-contrib) ; * 您的捐赠将鼓励我继续完善叮当,支持支付宝、微信、比特币、莱特币、以太坊等捐赠形式: | 支付宝 | 微信支付 | | ------ | --------- | | | | * BTC: 39Es9K6EYfnDeCj6hQ1rN9wX1Y5fxZ8CZA * LTC: LYkWaXB7Ndu8s37zt1tjEu6goVYck1GxNr * ETH: 0x792ec91956a4976203804105d4e4d71954048d4e ## 联系 * 叮当的主要开发者是 [潘伟洲](http://hahack.com) 。 * QQ 群:580447290 ## 感谢 * 叮当的前身是 [jasper-client](https://github.com/jasperproject/jasper-client)。感谢 [Shubhro Saha](http://www.shubhro.com/), [Charles Marsh](http://www.crmarsh.com/) and [Jan Holthuis](http://homepage.ruhr-uni-bochum.de/Jan.Holthuis/) 在 Jasper 项目上做出的优秀贡献; * 微信机器人使用的是 [liuwons](http://lwons.com/) 的 [wxBot](https://github.com/liuwons/wxBot)。 ## FAQ - 我能否更换成其他唤醒词,而不是叫“叮当”? - 能。参见 [修改唤醒词](https://github.com/wzpan/dingdang-robot/wiki/configuration#%E9%85%8D%E7%BD%AE%E9%BA%A6%E5%85%8B%E9%A3%8E) 。[项目站点](http://dingdang.hahack.com) 置顶的视频就演示了与一个名为“小梅”的机器人聊天。 - 百度不太能够准确识别我的指令,怎么办? - 参见 [优化百度语音识别准确度](https://github.com/wzpan/dingdang-robot/wiki/configuration#%E4%BC%98%E5%8C%96%E7%99%BE%E5%BA%A6%E8%AF%AD%E9%9F%B3%E8%AF%86%E5%88%AB%E5%87%86%E7%A1%AE%E5%BA%A6) 。 - 为什么取名为“叮当”? - 我一开始有多个候选唤醒词,但我发现”叮当“在离线唤醒词中准确率最高。所以取名为“叮当”。 - 我想了解你的系统镜像都做了哪些定制? - 请参见 [dingdang 镜像与 Raspbian 系统的区别](https://github.com/wzpan/dingdang-robot/wiki/different-with-raspbian) 。   - pi 账户默认登录密码是啥? - 与 Raspbian 系统默认密码相同,都是 raspberry 。 ## 免责声明 叮当只用作个人学习研究,如因使用叮当导致任何损失,本人概不负责。