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

Usage instructions or sample code missing #1

Open
bittner opened this issue Mar 29, 2016 · 2 comments
Open

Usage instructions or sample code missing #1

bittner opened this issue Mar 29, 2016 · 2 comments
Assignees

Comments

@bittner
Copy link

bittner commented Mar 29, 2016

I need a UI control that allows me to record a short period of sound for a speech-to-text translation app. I'm not sure the code in this repo will help me. It should be a simple button with a microphone icon that records a wave file as long a you press the button, and saves it as soon as you release the button.

For the API I'm planning to use (Houndify) it should be "WAV (with a valid header) or Speex format". That file I will send with a HTTPS POST request over to the API, and receive a JSON response.

If this repo had a bit of a sample code in the README, if not a dedicated example project, that were nice!

@bittner
Copy link
Author

bittner commented Mar 29, 2016

Not sure how this code here is related to LP:snaprecorder.

BTW, I'd like to write code in Python, or at least in QML only if possible.

@sverzegnassi
Copy link
Owner

Hi Peter,

Yes, snaprecorder is based on a test/example app I wrote some time ago (which uses a slightly updated version of the code uploaded in this branch)

The example app I mentioned above is located at:
lp:~verzegnassi-stefano/+junk/recorder-test

As long as it's okay for you to add this C++ plugin to your project, you can do something like:
http://pastebin.com/ecGASJF5

This code has been written for a Ubuntu (Touch) app that has never been released. There were several bug on the platform at the time, and I never found the interest (and time) to update it, so everything has been abandoned.

Now that the "Ubuntu for phones" platform is more mature, it could be worth to give a refresh to the code. I'll keep in mind to add some documentation and a few examples.

Thanks!

@sverzegnassi sverzegnassi self-assigned this Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants