[PYTHON] I talked to Raspberry Pi

Overview

Jasper is written in Python, An open source voice manipulation application written by two Princeton University students. Probably because development started last year, there is still little contributing, so If you can write Python, please do.

Because there are many compatible STT (voice → text) and TTS (text → voice) engines, It's quite fun. Currently, it is possible to communicate with Twitter and Evernote via API.

For example (all translated into Japanese): You "Jasper!" Jasper "Pip" You "tweet" Jasper "What are you tweeting?" "Pip" You "I hope it will be fine tomorrow" Jasper "Tweet"

In short, it is a certain butt that moves with Pi.

Installation procedure

  1. Open Official Documentation
  2. As written, just hit apt-get etc. to get the dependent file (I added it later because there was a problem)
  3. Speak enthusiastically in English while watching the recognized text flow as a log

Precautions at the time of introduction

The author introduced it using Method3 (Rasbian already installed), I had some problems.

First of all, when introducing PocketSphinx, which is inevitable no matter which method is used, I have a lot of dependent files, but it takes a lot of time to build OpenFST. It will take several hours. Let's wait patiently.

Also, it seems that it is the version of OpenFST (1.3.3) described in the document. Because it is moss due to an unidentifiable cause (sorry) I tried it in 1.4.1 and it was okay.

And with python populate.py, Jasper is made to" remember "various personal information. When specifying the address (location) with the name of the nearest large city, even if you type "Tokyo" etc., it will not be recognized. Apparently, it only supports American cities, and the author does not use it.

STT edition

The author seems to be aware of the default Pocket Sphinx, so It uses the API of Google Speech. The setup method is described in the document, so I will omit it a lot, but https://developers.google.com/ Get API_KEY from and write it in profile.yml.

Miscellaneous feelings

I think that if there is an SST that supports Japanese, it will be exciting in Japan as well.

Even so, it's fun to be able to move various things with voice recognition on such a small machine.

The author introduced Cygwin on Windows and Ssh to Windows through a module I wrote and I play games such as launching Steam games on my PC from the sofa.

Postscript (January 27, 2015)

I'm currently trying to control the air conditioner. If successful, I would like to write an article using photos.

Recommended Posts

I talked to Raspberry Pi
Introduced python3-OpenCV3 to Raspberry Pi
Introducing PyMySQL to raspberry pi3
Port FreeRTOS to Raspberry Pi 4B
Output from Raspberry Pi to Line
[Raspberry Pi] Changed Python default to Python3
I want to disable interrupts on Raspberry Pi (≒ DI / EI)
I tried to automate [a certain task] using Raspberry Pi
I sent the data of Raspberry Pi to GCP (free)
Connect two USB cameras to Raspberry Pi 4
I tried to automate the watering of the planter with Raspberry Pi
I made a web server with Raspberry Pi to watch anime
I want to run the Python GUI when starting Raspberry Pi
Raspberry Pi backup
I tried to estimate the pi stochastically
How to install NumPy on Raspberry Pi
I installed OpenCV-Python on my Raspberry Pi
Note: I want to do home automation with Home Assistant + Raspberry Pi + sensor # 1
I tried to make a traffic light-like with Raspberry Pi 4 (Python edition)
I connected the thermo sensor to the Raspberry Pi and measured the temperature (Python)
How to use Raspberry Pi pie camera Python
I tried to find 100 million digits of pi
I tried L-Chika with Raspberry Pi 4 (Python edition)
Connect your Raspberry Pi to your smartphone using Blynk
Connect to MySQL with Python on Raspberry Pi
I have a question. Unable to make protocol buffers on raspberry pi 3 modelB.
What is Raspberry Pi?
I started to analyze
pigpio on Raspberry pi
I tried to build an environment of Ubuntu 20.04 LTS + ROS2 with Raspberry Pi 4
Raspberry Pi video camera
Raspberry Pi Bad Knowledge
Let's do Raspberry Pi?
I tried to debug.
I tried to paste
I tried to create a button for Slack with Raspberry Pi + Tact Switch
DigitalSignage with Raspberry Pi
Raspberry Pi 4 setup memo
Cython on Raspberry Pi
Raspberry Pi system monitoring
From setting up Raspberry Pi to installing Python environment
Easy IoT to start with Raspberry Pi and MESH
Try to visualize the room with Raspberry Pi, part 1
How to use the Raspberry Pi relay module Python
Output to "7-segment LED" using python on Raspberry Pi 3!
When I tried to do socket communication with Raspberry Pi, the protocol was different
I want to be notified of the connection environment when the Raspberry Pi connects to the network
Raspberry Pi 4B initial setting
Indoor monitoring using Raspberry Pi
Mutter plants with Raspberry Pi
Install Raspberry Pi OS (Raspbian)
I wanted to run the motor with Raspberry Pi, so I tried using Waveshare's Motor Driver Board
I tried to learn PredNet
[Raspberry PI & Garmin GLO] Until you connect Bluetooth GPS to Raspberry Pi
I tried to organize SVM.
I tried running Movidius NCS with python of Raspberry Pi3
I tried connecting Raspberry Pi and conect + with Web API
I tried to implement PCANet
I tried to move ROS (Melodic) with the first Raspberry Pi (Stretch) at the beginning of 2021
Introduction to Nonlinear Optimization (I)
I applied LightFM to Movielens