I'm writing an app in python which inclues playing online mp3 resouces , the mp3 file is represented by an url like http://xxxxx.mp3, Is there any suitable modules can handle this?
I'm using Ubuntu system and python 2.7.2.
Related
I built a Django app for speech recognition, the app uses the user's microphone to record audio then convert it to text. It works well locally, but when I try to deploy it in Heroku it giving an error that Pyaudio can not install and
command 'gcc' failed with exit status 1.
I am using Python 3.6 and Windows 7. How can I deploy this application to Heroku?
the app uses the user's microphone to record audio then convert it to text
This won't work on Heroku even if you manage to install Pyaudio.
Python code runs on the server, not in the browser. If you try to record audio using Pyaudio it will try to record audio in some data centre somewhere on Amazon Web Services. This appears to work locally because in development your server and client are running on the same machine.
If you want to record audio from your users you'll need to do it in JavaScript.
I'm using a video player that can't play webm video files. (omxplayer on raspberry pi). And i'm trying to have all of my downloaded videos not be webm. mp4 or mkv work.
This is what I have in my config, but it still downloads it as webm. What settings can I use to guarantee it can play on omxplayer on a raspberry pi?
-f 'bestvideo[height<=720]+bestvideo[ext!=webm]+bestaudio[ext!=webm]'
This is what I ended up using and it worked.
bestvideo[ext!=webm][height<=1080]+bestaudio[ext!=webm]/best[ext!=webm]
I want to make and explore the speech to text using the python. So I searched on the google about the python speech to text api I have found pyspeech at the first and found it much easy to use but even after installing it I got some problems.
1) I have installed pyspeech using command prompt easy_install speech at the c:>python27...scripts but still i am unable to run the python speech API.
2) I have also installed the base PyPI required for the pyspeech running ez_setup.py.
What is the import error you get? pyspeech also needs pywin32.
Is that package installed? Also check if Microsoft speech kit is installed.
If everything is fine, add sys.path.append(site package path) at the top of your code.
I have installed Gstreamer OSS build on windows and i am able to play test audio on my system.
Can some share with me a Gstreamer pipeline to play mp3 file in windows.
Thanks
This is the canonical way to play all supported media:
gst-launch playbin2 uri=[the media to play]
We are developing a bada application in which we are downloading a zipped directory having JSON files and images in it.
After downloading the zip file from server we need to extract it for reading.
I am looking for some native function or external library to implement the functionality.
Bada 2.0 introduced FileUnzipper.
For previous Bada versions, you should take a look at bada-zlib.