Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1130  / 2 Years ago, tue, may 3, 2022, 1:10:08

There may not be a solution to this, but here's the problem nonetheless :)




  1. I'm on Ubuntu 14.04, using latest Chrome as my browser

  2. My sound card is busy being used by Google Hangouts

  3. My crontab is set up like this:



    * * * * * espeak "hello" > /path/to/my/error.log 2>&1



Monitoring the error log, I see no errors. But I hear no sound either. When I quit the hangouts, I start hearing the espeak "hello" output from my speakers every minute.



So, can espeak or any other program get around the fact that the sound card is busy? Thanks for reading the problem :)


More From » cron

 Answers
4

Try something like this:



* * * * * export DISPLAY=:0 ; espeak "hello" > /path/to/my/error.log 2>&1


espeak seems to need the X server.


[#24521] Wednesday, May 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainbby

Total Points: 184
Total Questions: 115
Total Answers: 112

Location: Colombia
Member since Thu, Sep 29, 2022
2 Years ago
;