Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Recording
-
Is there any way I could make a script to record from the microphone?
-
There is no module to access the microphone, and it cannot be done via HTML and JS as far as I know, so it's probably not possible.
-
I've not tried it... but something like this??
-
Not supported in ios7, or it looks like in upcoming ios8.
If you install dropvox, you can launch it and start recording, but there is currently no x-callback-url to have it automatically return.
https://www.irradiatedsoftware.com/help/dropvox/#fnref:11 -
Actually, say&go appears to be supported launch pad pro, which in turn supports x-callback-url... So maybe that might work (you'd then have to look for the drop boxed audio)... Kinda expensive though, for what it does.
-
I tried first method listed "HTML Media Capture" .... overloading the <input type="file">... in a WebView. It gives the option to take a new photo or video or choose existing. If you choose a new one and video... it causes Pythonista to request access to the microphone and the video includes sound. Don't know if it's any help for what you want.
-
I've done a fuller test (for speed, using omz's File Transfer script... http://gist.github.com/omz/3823483 ) and accessed it as localhost in Safari on the iPad.
It's resulted in an uploaded file... "capturedvideo.MOV" in my scripts folder... which plays in Pythonista when selected.
-
To do it all within Pythonista (without going out to Safari)... In omz's script add 'import webbrowser' and this line just before the last line 'serve forever'
webbrowser.open('http://localhost:8080', stop_when_done = True)
-
Thanks!
-
It's sounds fascinating but I do not quite follow. Can someone please post some code to GitHub that does the whole thing from end to end?
-
@ccc You can do it end to end with omz's script that's on GitHub ( http://gist.github.com/omz/3823483 ) plus the import and the line above.
1. Run it. 2. Go to the browser panel in Pythonista and click the button to choose the file to upload 3. Choose to record a new video 4. When iOS returns you to the browser in Pythonista the video file will be indicated next to the button you clicked 5. Click on Upload 6. The video will be in your scripts directory as "capturedvideo.MOV"
-
Got it. Thx.
-
See my speech tool. It's not 100% working yet, but its getting there.
-
.????. Is posible or is not?
-
@sam-rod if the question is still to record via the microphone, the answer is yes, through the standard Pythonista module sound.Recorder