Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate speech to text functionality to a docker container #18

Merged
merged 8 commits into from Dec 9, 2018

Conversation

Projects
None yet
2 participants
@Michael-Overall
Copy link
Collaborator

commented Nov 23, 2018

Closes #13

What was Done:

  • Took @steaward's code and modified some of the directory paths it specified to make it more portable.
  • Moved all microphone code from extension.js and created its own dedicated node module in micContainer/containerFiles. This directory now gets mounted to a docker container when the extension is run in VS Code.

Important notes:

Current implementation only supports unix style machines since it mounts the /dev/snd directory to the docker container to pass in microphone functionality. This works because Unix systems mount hardware to their directory trees. This was tested and run on Ubuntu 18.04

To test:

docker build -t mic-container .

Don't forget the "." at the end of this command since it indicates you want to use the Dockerfile in the current directory. The first build will take a few minutes, but any later builds will be faster since Docker caches parts of the build process.

  • in VS code, hit F5, go to the command pallette in the new window that came up, and enter "Code Talker" (that's right; it's no longer "Hello World"). Speech to text output should appear in the debug console output of the old window.
@PopeSpaceous
Copy link
Owner

left a comment

@steaward Would you be able to test this for me?
I don't have a current Unix build up and running. Let me know that it's working and I'll merge it.

@PopeSpaceous
Copy link
Owner

left a comment

Looks good!

@PopeSpaceous PopeSpaceous merged commit 98c5daf into PopeSpaceous:Dockerized Dec 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.