using Linux executables from xBlock

18 views
Skip to first unread message

Robert M

unread,
Apr 16, 2017, 9:14:04 PM4/16/17
to General Open edX discussion

Is it possible to use executables from an xblock?

For example, call command line executable from python based xblock like this:

import os
os.system('sox input.wav -b 24 output.aiff rate -v -L -b 90 48k')


Where I assume I would have to include the executable in the xBlock to get it deployed.

Ned Batchelder

unread,
Apr 18, 2017, 12:43:33 PM4/18/17
to edx-...@googlegroups.com
Robert,

You can use any Python you like in your XBlock. You have to be careful not to depend on something that might not be present, or might change.

I'm curious about using an audio processing toolkit from an XBlock. What are you envisioning?

--Ned.

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/6fd6cbf7-8e57-4e66-9fb9-f67dca571071%40googlegroups.com.

Robert Mundkowsky

unread,
Apr 18, 2017, 9:07:56 PM4/18/17
to edx-...@googlegroups.com
Down sampling audio before further use.


--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CAGtJPNM4OYxU1kAG4DfMG4n3rARGKKY8nNvPScEouJiHsrA%3Dpw%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages