Speech based emoji entry ππ£
This is the code repo for the CHI 2021 paper Voicemoji: Emoji Entry Using Voice for Visually Impaired People
Please refer to the file requirements.txt
The *.py
files are for the backend server. The project uses Tornado to host the website as well as to process the speech requests.
project
β server.py (the main server entry)
| Recognizer.py (speech recognition with Google api)
β TextProcessor.py (search emojis realted to the spoken content using google search api)
β CHNTextProcessor.py (same as TextProcessor.py, but for Chinese)
The main.js
contains the webinterface logic. It uses websocket to communicate with the backend for the chat feature. Other features are commented in the file.
Voicemoji uses google api for speech recognition and translation for Chinese. You may apply for your own api key and store the api json file in the folder.
To search emojis based on the spoken content, you need to apply for a google custom search api and
replace the corresponding url (gsearchURL
) in TextProcessor.py
.
If you want to deploy the website, you must apply for a HTTPS cert, as voice data transfer is restricted only in HTTPS mode. You can use services such as Let's Encrypt
to get a free certificate. Once done, create a folder certs
and put the necessary cert files .crt
and .key
, which are used in server.py
.
#Commands to run
Use python -W ignore server.py
to run the server. Then you can navigate to https://localhost:443
to see if the website is up.
If you use the code in your paper, then please cite it as:
@inbook{10.1145/3411764.3445338,
author = {Zhang, Mingrui Ray and Wang, Ruolin and Xu, Xuhai and Li, Qisheng and Sharif, Ather and Wobbrock, Jacob O.},
title = {Voicemoji: Emoji Entry Using Voice for Visually Impaired People},
year = {2021},
isbn = {9781450380966},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3411764.3445338},
booktitle = {Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems},
articleno = {37},
numpages = {18}
}