![]() So *Nix and Python gurus, care to point out how I'm being an idiot and how I can fix it. The subprocess and Popen both complain that it can't find mplayer (I've tried fully qualified paths there and no luck). The system call just prints the command string and then exits out (is the code ending before mplayer? If so how do you get it to wait?). I have tried os.system, subprocess, Popen. SpeakSpeechFromText (random_line(filePath)) ![]() GoogleSpeechURL = getGoogleSpeechURL(phrase)ĬommandString = '/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols ' + googleSpeechURLįilePath = "/home/pi/TalkingSkullPhrases.txt" Hopefully someone can tell me what I am doing wrong? import urllib, os, random, urllib.request, urllib.parse, shutil, subprocessĭata = (parameters) This will be mounted inside of a ceramic skull for the delight of ghosts and ghouls in the neighborhood. My ultimate goal is to have a small python 3 script start at start-up and every so often say some random statement. The Pi happily goes out to Google and plays, via mplayer, the TTS. Let me start by saying that this works: #!/bin/bash I only dabble in Linux and Pi so I have come to the experts for guidance. kernel: EXT4-fs (mmcblk0p2): failed to convert unwritten extents to written extents - potential data loss! (inode 45281, error -30) The system is fresh I installed it yesterday via raspberry imager app.(This is on a Raspberry Pi B running -wheezy-raspbian, update and upgrade have been run, mplayer is installed and tested, coding using Python 3) r/raspberrypi - MagInkDash: Featuring the Inkplate 10 and Raspberry Pi Model. UPDATE#3: Raspberry gave me this error: Message from at Jul 8 13:46:10. Ive tried to play some videos with mplayer using the yt (youtube ncurses. You will not be able to use your remote control. ![]() As a side note, I have not found any video player that could playback videos reliably except omxplayer which was built with the Pis GPU in mind. I am starting to think, that I have faulty PI. /test-44.wav MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. There is a package named smplayer that gives a GUI to the mplayer program. LAN LEDs are blinking and the ACT LED blinks too although softly (2% of brightness). Pi is not responding to anything other than hard reset. I have no HDMI output and when I try connecting via SSH I get kex_exchange_identification: read: Connection reset. UPDATE#2: So the raspberry pi stopped responding again. I'll give more details once it stops working again. The trouble happens during day/night, when it unexpectedly stops streaming the music. UPDATE#1:When I start mplayer manually it runs fine, just as it runs with that python script. What I need is reliable radio client, that I can replicate, install and never ever gave a sh*t about it.Ĭommand for running mplayer: mplayer -cache 16384 -cache-min 80 I assume my pi runs out of cache and tries to do something, but It fails. ![]() I am no python developer, but this seems to work pretty well, until something happens and there is no sound comming out of the PI. So I created simple python3 script, that will run my mplayer when there is internet connection. I installed raspberrian lite and I decided to use Mplayer as media player. To get started playing MP3 or other audio files on your Raspberry Pi, youll need to either download some (via the browser), or copy them across. One solution is to use sox : sox test.mp3 test.wav aplay test.wav If it is a device selection problem, then. For that reason you will most likely want to convert the mp3 to a wav file and then play. I decided to use Raspberry pi, because its perfect for the job. 1 Answer Sorted by: -1 Assuming that this is an audio file format problem : aplay doesn't play compressed formats as of today. Long story short I have created online radio for my client and now I need to create client nodes for the radio. ![]()
0 Comments
Leave a Reply. |