Coder Social home page Coder Social logo

Comments (6)

wwmm avatar wwmm commented on June 14, 2024

Hi

I released a new version that should fix this error.

from easyeffects.

teamosceola avatar teamosceola commented on June 14, 2024

I also have no spectrum visualization, but with a different repeating error.

Traceback (most recent call last):
File "/home/chris/pulseeffects/PulseEffects/gst.py", line 343, in on_message
magnitudes = msg.get_structure().get_value('magnitude')
TypeError: unknown type GstValueList
...

This is as of:
commit 6fe629e
Author: wwmm [email protected]
Date: Sun May 28 17:46:55 2017 -0300

updated readme image

This is on Ubuntu 16.04 LTS with Unity

Thanks!

from easyeffects.

wwmm avatar wwmm commented on June 14, 2024

Hi,

Use version 1.4.1 https://github.com/wwmm/pulseeffects/archive/v1.4.1.tar.gz. Higher versions will need gstreamer 1.12. You probably have a lower version in your system. Before Gstreamer 1.12 we needed a hack to get spectrum magnitudes using Python. The type GstValueList was not exposed in gst-python api. Gstreamer developers added the missing types in Gstreamer 1.12

from easyeffects.

kolorafa avatar kolorafa commented on June 14, 2024

1.4.4 - still the same error BUT

I see that i don't have visuals if i use
$ pactl load-module module-echo-cancel
and set the default output to that module

If i just switch default back to soundcard it works.

While switched to soundcard:

$ pulseeffects 
21:24:30.73 - PulseEffects - INFO - pulseaudio context started
21:24:30.74 - PulseEffects - INFO - pulseaudio version: 10.0
21:24:30.74 - PulseEffects - INFO - default pulseaudio source: alsa_input.pci-0000_00_1b.0.analog-stereo.echo-cancel
21:24:30.74 - PulseEffects - INFO - default pulseaudio sink: alsa_output.pci-0000_00_1b.0.analog-stereo
21:24:30.74 - PulseEffects - INFO - default pulseaudio sink sampling rate: 44100 Hz. We will use the same rate.
21:24:30.74 - PulseEffects - INFO - loading Pulseeffects sink...
21:24:30.75 - PulseEffects - INFO - sink idx: 33
21:24:30.75 - PulseEffects - INFO - Pulseeffects sink was successfully loaded
21:24:30.75 - PulseEffects - INFO - Pulseeffects sink monitor name: PulseEffects.monitor. We will process audio from this source.

While switched to echo cancelled soundcard:

$ pulseeffects 
21:26:14.206 - PulseEffects - INFO - pulseaudio context started
21:26:14.206 - PulseEffects - INFO - pulseaudio version: 10.0
21:26:14.206 - PulseEffects - INFO - default pulseaudio source: alsa_input.pci-0000_00_1b.0.analog-stereo.echo-cancel
21:26:14.206 - PulseEffects - INFO - default pulseaudio sink: alsa_output.pci-0000_00_1b.0.analog-stereo.echo-cancel
21:26:14.206 - PulseEffects - INFO - default pulseaudio sink sampling rate: 32000 Hz. We will use the same rate.
21:26:14.206 - PulseEffects - INFO - loading Pulseeffects sink...
21:26:14.207 - PulseEffects - INFO - sink idx: 34
21:26:14.207 - PulseEffects - INFO - Pulseeffects sink was successfully loaded
21:26:14.207 - PulseEffects - INFO - Pulseeffects sink monitor name: PulseEffects.monitor. We will process audio from this source.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/PulseEffects/gst.py", line 263, in media_probe
    element = next(i for i in self.spectrum_freqs if i >
StopIteration
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/PulseEffects/gst.py", line 348, in on_message
    max_mag = max(magnitudes)
ValueError: max() arg is an empty sequence
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/PulseEffects/gst.py", line 348, in on_message
    max_mag = max(magnitudes)
ValueError: max() arg is an empty sequence
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/PulseEffects/gst.py", line 348, in on_message
    max_mag = max(magnitudes)
ValueError: max() arg is an empty sequence
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/PulseEffects/gst.py", line 348, in on_message
    max_mag = max(magnitudes)
ValueError: max() arg is an empty sequence
Traceback (most recent call last):
.....

from easyeffects.

wwmm avatar wwmm commented on June 14, 2024

I was able to reproduce the problem with module-echo-cancel. Its lower sampling rate(32000 Hz) is triggering this bug. If I have the time I will release a new version fixing this in 1 or 2 days.

from easyeffects.

wwmm avatar wwmm commented on June 14, 2024

I released version 1.4.5. It fixes the problem with module-echo-cancel in my system.

from easyeffects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.