You are not logged in.

#1 2017-05-29 14:25:27

Archidon
Member
Registered: 2017-05-29
Posts: 6

Browser audio working but not terminal audio!

I have been working on text-to-speech stuff, and ran into the problem that my audio isn't working. Until I booted from a USB I didn't know there was a beeping sound in xfce terminal. My Desktop is cinnamon. When I load a page like youtube, however, the audio works fine. Help? Audio = Pulseaudio.
EDIT:
Abuse the game also has working audio.
My Text-To-Speech is gTTs.
UPDATE:
I tried using the beep module to test terminal audio. It isn't working either.

Last edited by Archidon (2017-05-29 15:55:55)

Offline

#2 2017-05-29 15:35:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,887

Re: Browser audio working but not terminal audio!

text-to-speech stuff

my audio isn't working

=> https://bbs.archlinux.org/viewtopic.php?id=57855

Start with elaborating on "text-to-speech stuff" and then cross check with https://wiki.archlinux.org/index.php/Pu … leshooting

Offline

#3 2017-05-29 15:40:25

Archidon
Member
Registered: 2017-05-29
Posts: 6

Re: Browser audio working but not terminal audio!

A:
Text to speech isn't very important to the question. I'll just remove it.
B:
Tests showed everything should be working fine, and in the browser it is.
I only realized I was having a terminal audio problem when I booted on another system and realized that pressing backspace while there's nothing in the terminal usually results in a beep, but on my system it isn't doing that. Text to speech is one thing that isn't working because of this. So what I put is all I know.

Offline

#4 2017-05-29 15:44:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Browser audio working but not terminal audio!

Archidon wrote:

Text to speech is one thing that isn't working because of this. So what I put is all I know.

This is almost certainly incorrect.

The "beep" you are talking about requires the kernel module pcspkr as it is generated entirely differently from all other audio.  pcspkr is enabled by default, but *very* frequently blacklisted when people set up their system as it is absurdly annoying and serves no purpose (this is opinion of course, but a widely shared opinion).

So it would seem you blacklisted pcspkr on you main installation, but the usb system is more "vanilla".  I'm not sure how you would not know you did this, unless you really didn't install arch, but rather some spin off or derivative distro.

But in either case, I'm pretty sure text-to-speech doesn't use the pcspkr.

However, you still haven't answered the previous question: what is "text-to-speech stuff"?  What program are you using, what command are you executing, an what errors do you get?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2017-05-29 15:51:15

Archidon
Member
Registered: 2017-05-29
Posts: 6

Re: Browser audio working but not terminal audio!

I wish it ended up being as simple as pcspkr being blacklisted, but my USB and my laptop were both copied from the same homemade ISO, meaning they are almost exactly the same ISO, albeit one more expanded. No audio edits have been made over either's lifetime.

Offline

#6 2017-05-29 15:52:15

Archidon
Member
Registered: 2017-05-29
Posts: 6

Re: Browser audio working but not terminal audio!

Note copied not installed. It was an earlier USB system.

Offline

#7 2017-05-29 15:54:05

Archidon
Member
Registered: 2017-05-29
Posts: 6

Re: Browser audio working but not terminal audio!

I am using gTTs for text-to-speech.

Offline

#8 2017-05-29 16:10:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,887

Re: Browser audio working but not terminal audio!

Please just edit your posts unless anybody has responded inbetween.

Let's try your "this is audio related" theory: install espeak and run

echo "This is a Test." | espeak

Offline

#9 2017-05-29 16:13:16

Archidon
Member
Registered: 2017-05-29
Posts: 6

Re: Browser audio working but not terminal audio!

It does result in that output.
Thank you!
I really don't care about the beep, I just wanted to fix the implications.

Offline

#10 2017-05-29 16:40:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,887

Re: Browser audio working but not terminal audio!

Iow, the only thing that doesn't produce sound is that "text-to-speech stuff", "using gTTs"? ... ;-)
(You may also try "mpg123 foo.mp3" or "mplayer foo.mp3" or "ffplay foo.mp3")

https://aur.archlinux.org/packages/python-gtts/ ?
Setup? Command? Error messages?

Offline

#11 2017-05-29 16:48:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Browser audio working but not terminal audio!

seth wrote:

Setup? Command? Error messages?

Archidon, this is the third time you have been asked for the command you are using (as well as the error messages).  gTTs gives us a hint, but it is not a command.  I've given up on trying to help here, but Seth probably has more patience than I do.  I will not, however, allow you to abuse his patience further if you do not answer this question that has now been posed three times.  Provide complete information or this thread will be binned.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2017-05-29 16:51:14

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Browser audio working but not terminal audio!

if you want a less annoying terminal beep, then add something like this to your bashrc:

export BELL=/usr/share/sounds/freedesktop/stereo/bell.oga
alias beep="paplay $BELL"

Offline

#13 2017-05-29 16:56:15

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Browser audio working but not terminal audio!

if it is this gTTS then it doesn't produce sound by default, it produces an mp3 stream. you would need to pipe that to a media player like paplay, mplayer, or the like.

Last edited by HiImTye (2017-05-29 16:58:25)

Offline

Board footer

Powered by FluxBB