You are not logged in.

#1 2019-09-13 09:48:09

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

WoMic noisy and unclear sound

Hi, Im trying to use WoMic to use my iPhone sound input as an input to my Arch Linux

The Only available option for iPhone is creating connection via WiFi and for that i used an android device hotspot to connect my Womic to my arch linux, but the result was a noisy and unclear sound

my guesses resulted that it might be a delay in transfering data via old android phone's hotspot and for that, i tried to create AP on my own Arch Linux (using Create_AP script) to reduce the delay as much as possible, but now again im getting the same result : noisy and unclear sound input

Im sure its not a hardware problem because im having a really clear voice on my iphone, but Womic just makes it noisy on my Arch Linux (works fine in windows, i have tested now)

here are my steps :

1. I load the snd-aloop module (needed by womic) using the command below :

sudo modprobe snd-aloop

2. I run WoMic to connect to my iPhone :

sudo ./womic -t WIFI 192.168.12.19

3. I start recording sound using arecord from that sound input :

arecord -c 1 -r 48000 -f S16_LE -D "hw:CARD=Loopback,DEV=1,SUBDEV=0" Desktop.wav

and the results are below :
Sound on my iPhone
Sound on my Arch Linux

this is my sound card info :

╭─erfan at erfan in /home/erfan
╰─λ lspci | grep -i audio                              0 < 14:16:15
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)

edit : i also have tested sound in-action by using simplescreenrecorder and using ALSA input config on hw: 1,1 and getting the same sound on screen record

Last edited by erfanjoker (2019-09-13 09:53:43)

Offline

#2 2019-09-16 18:57:15

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

any solutions ?

Offline

#3 2019-09-16 22:32:43

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: WoMic noisy and unclear sound

erfanjoker wrote:

any solutions ?

Don't do that.

Read the Code of Conduct. We are not going to ask you again.

Offline

#4 2019-10-03 10:00:57

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

Also i have to mention im getting the error below after it connects in terminal :

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave

this is the complete output and the command :

╭─erfan at erfan in /home/erfan/Wo Mic
╰─λ sudo ./womic -t WIFI 172.20.10.12                         0 < 13:28:37
Connecting... 
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Connected     

Offline

#5 2019-10-15 17:29:25

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

Guys I have tested this feature on a live ubuntu on my laptop (the same laptop that im using arch linux) and everything worked fine !

so whats wrong with arch linux ? can u guys test wo mic on your own arch and tell me the result ? what could be possibly causing this issue ?

Offline

#6 2019-10-15 18:57:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,254

Re: WoMic noisy and unclear sound

dmix failed to open slave means it couldn't open up your default ALSA device. As you are using pulseaudio, you will want to install pulseaudio-alsa if you haven't yet.

Online

#7 2019-10-16 12:45:37

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

V1del wrote:

dmix failed to open slave means it couldn't open up your default ALSA device. As you are using pulseaudio, you will want to install pulseaudio-alsa if you haven't yet.

I already have pulseaudio-alsa installed

Offline

#8 2019-10-16 13:07:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,254

Re: WoMic noisy and unclear sound

Output of

aplay -lL

?

Last edited by V1del (2019-10-16 13:08:02)

Online

#9 2019-10-16 13:20:40

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

V1del wrote:

Output of

aplay -lL

?

╭─erfan at erfan in /home/erfan
╰─λ aplay -lL                                                                                                                             0 < 16:48:07
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
front:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Front speakers
surround21:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Loopback
    Loopback
    USB Stream Output
sysdefault:CARD=PCH
    HDA Intel PCH, ALC269VC Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
usbstream:CARD=ThinkPadEC
    ThinkPad Console Audio Control
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline

#10 2021-01-25 03:32:39

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

Hi, I hope this is not a necrobump, but as the question is still there and not fixed and all the paramaters still remain the same, so I continue this thread.

I'm getting the Unclear and Noisy (a robot like sound which has scratches in it) when i use Womic, I can assure you my iPhone's soundcard is fine cause I tested it and is ok, I also can assure you I have tested it on Windows and Ubuntu and they both work fine !

Here are my commands and their output :

^^>>> sudo modprobe snd-aloop                                                                                                                                                                                                       
^^>>> lsmod | grep snd_aloop                                                                                                                                                                                                         
snd_aloop              32768  3
snd_pcm               147456  10 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_compress,snd_soc_core,snd_aloop,snd_hda_core,snd_pcm_dmaengine
snd_timer              45056  2 snd_aloop,snd_pcm
snd                   114688  23 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_aloop,snd_pcm
^^>>> sudo ./womic -t Wifi 192.168.1.2
Connecting... 
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
Connected     
^^>>> aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC269VC Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
front:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Front output / input
surround21:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Loopback
    Loopback
    USB Stream Output
usbstream:CARD=ThinkPadEC
    ThinkPad Console Audio Control
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
^^>>> lspci -knn|grep -iA2 audio                                    07:04:24 
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
        Subsystem: Lenovo Device [17aa:5002]
        Kernel driver in use: snd_hda_intel

and for the record, you can see sample of correct sound and noisy sound that I recorded

Last edited by erfanjoker (2021-01-25 03:34:49)

Offline

#11 2021-01-30 08:15:35

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: WoMic noisy and unclear sound

According to this, I have to note that :
Im using IOS version and there are not USB or Bluetooth options available, so I can only use Wifi
WoMic is in forground and not backgrounded, I also have no other apps opened so the only 3rd party app using CPU is WoMic

And about the last note which says :

Bluetooth and Wi-Fi are both using 2.4G ISM frequency. They may interfere each other seriously. If it's allowed, while you are using one wireless, you better shut down the other. Please do this on both phone and PC.

On the linux side, Im using a LAN Cable Connection to the router, and on the IOS side I'm using Wifi connection to the router, here is my ping to IOS (192.168.1.2) and the router itself from linux :

^^>>> ping -c 4 192.168.1.2                                                                                 11:34:19 
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=1.80 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=47.8 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=80.8 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=64 time=195 ms

--- 192.168.1.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3006ms
rtt min/avg/max/mdev = 1.795/81.355/195.058/71.391 ms

^^>>> ping -c 4 192.168.1.1                                                                                 11:34:27 
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=30 time=0.229 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=30 time=0.271 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=30 time=0.257 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=30 time=0.300 ms

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3041ms
rtt min/avg/max/mdev = 0.229/0.264/0.300/0.025 ms

I also tried to turn off the bluetooth on IOS in the settings, and there is still no change, also about the linux side i did : "sudo systemctl stop bluetooth" and still no effect

I would appreciate any help at debugging this beast, and for more info :

anbox0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 9a:7b:9d:a7:d3:b7  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.3  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::f105:118d:d5f7:9be3  prefixlen 64  scopeid 0x20<link>
        ether 3c:97:0e:18:72:cc  txqueuelen 1000  (Ethernet)
        RX packets 32082  bytes 13886255 (13.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 29094  bytes 2829304 (2.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 7643  bytes 1125990 (1.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7643  bytes 1125990 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0b1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 9a:64:51:09:fd:c7  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Offline

Board footer

Powered by FluxBB