Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choppy Audio #4

Open
ampledata opened this issue Jan 25, 2017 · 0 comments
Open

Choppy Audio #4

ampledata opened this issue Jan 25, 2017 · 0 comments

Comments

@ampledata
Copy link

Opening this to track the issue, with more details to come, but:

On my specific setup, whenever I try to pass audio directly to the sound card, the output is choppy (i.e. incremental delays in audio playback).

Outputting to a wav file, and playing back (using aplay) through the same sound card is OK.

I've found that replacing the following line in afsk.py:encode() eliminates the problem:

		#multiply(modulate(framed_data), constant(0.5)),
		modulate(framed_data),

To Reproduce:

$ ALSA_CARD=Device aprs -c W2GMD "Test"

Versions:

Python 2.7.9

afsk==0.0.3
audiogen==0.1.2
bitarray==0.8.1
PyAudio==0.2.10

portaudio19-dev 19+svn20140130-1
libportaudio2:armhf 19+svn20140130-1

Linux latrans 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie

Audio Output:

card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant