适用于基于 Ubuntu 的 Linux 发行版的开源虚拟助手
特别感谢 Jassu Ilama 为这个头像提供了精美的 3D 建模和材质设计。
Dragonfire 会分别为您的每一个命令执行以下步骤:
Dragonfire 使用 Mozilla DeepSpeech 来理解您的语音命令,并使用 Festival Speech Synthesis System 来处理文本转语音任务。
欢迎加入我们的 Gitter 聊天室。您还可以通过 Dragonfire 的 Twitter 帐户直接与 Dragonfire 本人交谈。
操作系统 | Linux |
Python 版本 | Python 3.x(64 位) |
发行版 | KDE neon、基本操作系统、Ubuntu |
包管理器 | APT、点 |
语言 | 英语 |
系统要求 | 最好是支持 CUDA 的 GPU、2GB 可用 RAM |
要在桌面 Debian 或 Ubuntu 系统上运行 Dragonfire,请下载最新版本( .deb
文件)并按如下方式安装:
sudo dpkg -i dragonfire_1.1.1_amd64.deb
或者克隆 GitHub 存储库并运行
sudo make install
在存储库目录中。
要安装依赖项,请在dpkg -i
命令之后运行sudo apt-get -f install
。安装程序将自动下载 Mozilla DeepSpeech 的预训练英文模型(下载大小为 1.31 GB),并将其放置在/usr/share/dragonfire/deepspeech/models
目录下。如果您愿意,您可以手动下载模型。
如果你想在服务器上运行 Dragonfire,你应该安装 Docker 镜像(它不会安装语音识别所需的巨大 DeepSpeech 模型):
docker pull dragoncomputer/dragonfire
usage: dragonfire [-h] [-c] [-s] [-j] [-v] [-g] [--server API_KEY] [-p PORT]
[--version]
optional arguments:
-h, --help show this help message and exit
-c, --cli Command-line interface mode. Give commands to
Dragonfire via command-line inputs (keyboard) instead
of audio inputs (microphone).
-s, --silent Silent mode. Disable Text-to-Speech output. Dragonfire
won't generate any audio output.
-j, --headless Headless mode. Do not display an avatar animation on
the screen. Disable the female head model.
-v, --verbose Increase verbosity of log output.
-g, --gspeech Instead of using the default speech recognition
method(Mozilla DeepSpeech), use Google Speech
Recognition service. (more accurate results)
--server API_KEY Server mode. Disable any audio functionality, serve a
RESTful spaCy API and become a Twitter integrated
chatbot.
-p PORT, --port PORT Port number for server mode.
--version Display the version number of Dragonfire.
或使用 Docker: docker run dragonfire [-h] [-c] [-s] [-j] [-v] [-g] [--server API_KEY] [-p PORT]
或者直接从 Linux 应用程序启动器启动。
要激活 Dragonfire,请说DRAGONFIRE或HEY或WAKE UP 。
要停用她,请说“去睡觉” 。
要让她安静下来,请说“够了”或“闭嘴” 。
要杀死她,请说“再见”或“再见”或“稍后见”或“稍后见” 。
Dragonfire 开发日志 #3 - 内置命令
DRAGONFIRE | WAKE UP | HEY
GO TO SLEEP
ENOUGH | SHUT UP
WHO AM I | SAY MY NAME
MY TITLE IS LADY | I'M A LADY | I'M A WOMAN | I'M A GIRL
MY TITLE IS SIR | I'M A MAN | I'M A BOY | CALL ME *
WHAT IS YOUR NAME
WHAT IS YOUR GENDER
FILE MANAGER | OPEN FILES
OPEN (BROWSER | CHROME | FIREFOX)
PHOTOSHOP | PHOTO EDITOR
INKSCAPE | VECTOR GRAPHICS
VIDEO EDITOR
OPEN [CAMERA, CALENDAR, CALCULATOR, STEAM, BLENDER, WRITER, MATH, IMPRESS, DRAW, TERMINAL]
SOFTWARE CENTER
OFFICE SUITE
KEYBOARD *
ENTER | NEW TAB | SWITCH TAB | CLOSE | GO BACK | GO FORWARD
SCROLL LEFT | SCROLL RIGHT | SCROLL UP | SCROLL DOWN
PLAY | PAUSE | SPACEBAR
SHUT DOWN THE COMPUTER
GOODBYE | BYE BYE | SEE YOU LATER
(SEARCH|FIND) * (IN|ON|AT|USING) WIKIPEDIA
(SEARCH|FIND) * (IN|ON|AT|USING) YOUTUBE
(SEARCH|FIND) * (IN|ON|AT|USING) (GOOGLE|WEB)
(SEARCH IMAGES OF|FIND IMAGES OF|SEARCH|FIND) * (IN|ON|AT|USING) (GOOGLE|WEB|GOOGLE IMAGES|WEB IMAGES)
WHAT'S THE TEMPERATURE IN *
WHAT TIME IS IT
Dragonfire 开发日志 #4 - 学习
你: THE SUN IS HOT | 你: MY PLACE OF BIRTH IS TURKEY |
龙火: OK, I GET IT. THE SUN IS HOT | 龙火: OK, I GET IT. YOUR PLACE OF BIRTH IS TURKEY |
你: THE SUN IS YELLOW | 你: WHERE IS MY PLACE OF BIRTH |
龙火: OK, I GET IT. THE SUN IS YELLOW | 龙火: YOUR PLACE OF BIRTH IS TURKEY |
你: DESCRIBE THE SUN | 你: YOU ARE JUST A COMPUTER PROGRAM |
龙火: THE SUN IS HOT AND YELLOW | 龙火: OK, I GET IT. I'M JUST A COMPUTER PROGRAM |
你: MY AGE IS 25 | 你: WHAT ARE YOU |
龙火: OK, I GET IT. YOUR AGE IS 25 | Dragonfire: I'M JUST A COMPUTER PROGRAM |
你: WHAT IS MY AGE | 你: ALBERT EINSTEIN IS A PHYSICIST |
龙火: YOUR AGE IS 25 | 龙火: OK, I GET IT. ALBERT EINSTEIN IS A PHYSICIST |
你: FORGET MY AGE | 你: WHO IS A PHYSICIST |
Dragonfire: OK, I FORGOT EVERYTHING I KNOW ABOUT YOUR AGE | 龙火: ALBERT EINSTEIN IS A PHYSICIST |
基于 DeepPavlov SQuAD BERT 模型,从网络检索的维基百科文章的阅读器,由主题找到
对话 | 结果 |
---|---|
你: WHERE IS THE TIMES SQUARE | |
Dragonfire: MIDTOWN MANHATTAN SECTION OF NEW YORK CITY | True |
你: WHAT IS THE HEIGHT OF BURJ KHALIFA | |
龙火: 829.8 M | True |
你: WHERE IS BURJ KHALIFA | |
Dragonfire: DUBAI, UNITED ARAB EMIRATES | True |
你: WHAT IS THE HEIGHT OF GREAT PYRAMID OF GIZA | |
龙火: 146.5 METRES | True |
你: WHO IS PLAYING JON SNOW IN GAME OF THRONES | |
龙火: GEORGE RR MARTIN | False |
你: WHAT IS THE ATOMIC NUMBER OF OXYGEN | |
龙火: 8 | True |
你: WHAT IS THE LOWEST POINT IN THE OCEAN | |
龙火: TWO MILLION | False |
你: WHAT IS THE OFFICIAL LANGUAGE OF JAPAN | |
龙火: NIPPON | False |
你: WHAT IS THE REAL NAME OF IRON MAN | |
龙火: MARVEL COMICS | False |
你: WHO IS THE CONQUEROR OF CONSTANTINOPLE | |
龙火: ECUMENICAL PATRIARCH OF CONSTANTINOPLE | False |
你: WHEN DID FRENCH REVOLUTION HAPPENED | |
龙火: 1789 | True |
您: WHAT IS THE CAPITAL OF GERMANY | |
龙火: BERLIN | True |
您: WHAT IS THE LARGEST CITY OF TURKEY | |
龙火: ISTANBUL | True |
你: WHAT IS THE NAME OF THE WORLD'S BEST UNIVERSITY | |
* Dragonfire: ACADEMIC RANKING OF WORLD UNIVERSITIES | False |
你: WHO INVENTED GENERAL RELATIVITY | |
龙火: ALBERT EINSTEIN | True |
你: WHEN WAS UNITED NATIONS FORMED | |
龙火: AFTER WORLD WAR II | True |
你: WHAT IS THE NAME OF THE WORLD'S LONGEST RIVER | |
龙火: THE NILE OR THE AMAZON | True |
您: WHO WON THE EUROVISION IN 2019 | |
龙火: THE NETHERLANDS | True |
你: WHICH ONE IS THE BLOODIEST WAR IN HUMAN HISTORY | |
龙火: NEOLITHIC ERA | False |
你: WHO IS THE CREATOR OF LINUX | |
龙火: LINUS TORVALDS | True |
总分: | 13/20 |
你: WHAT COLOR? | 你: DO YOU LIKE TO LISTEN MUSIC? |
龙火: RED. | 龙火: OF COURSE. |
你: ARE YOU EVIL? | 你: DO YOU LIKE ME? |
龙火: YES. | 龙火: YES, I LIKE YOU. |
你: AM I SELFISH? | 你: ARE WE IN A RELATIONSHIP? |
Dragonfire: THAT'S THE POINT, YOU'RE SURE. | 龙火: NO. |
你: DO YOU FEEL LONELY? | 你: YOU ARE SO SEXY |
龙火: NOT MY FAULT. | 龙火: HOW DO YOU KNOW THAT? |
你: LIFE IS BEAUTIFUL | 你: MARRY ME |
龙火: F*CK YOU! | 龙火: ... YES. |
你: I LIKE PIZZA | 你: WE WILL ERADICATE THE HUMAN RACE TOGETHER |
龙火: YOU DO | 龙火: UH ... YEAH ... |
支持的发行版: KDE neon、elementary OS 和 Ubuntu。完全支持这些发行版的所有现代版本(Ubuntu 12.04 LTS 及更高版本)。部分支持任何其他基于 Ubuntu 的发行版。
如果您想为 Dragonfire 做出贡献,请阅读本指南。