Giter Club home page Giter Club logo

Comments (30)

SeaDve avatar SeaDve commented on May 28, 2024 1

ill push a fix, thanks for the help

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024 1

u can set LANGUAGE=en_US as an environment variable when running mousai so you dont have to set the global locale of your system

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

try changing preferred audio source in hamburger menu

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

try changing preferred audio source in hamburger menu

Of course I tried! It's still nothing =(
I don't have a mic, btw - maybe this is an issue?

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

it gets the default audio source as stated in pactl info. So i think it should not matter

if you have gnome control center installed you can check the device there

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

it gets the default audio source as stated in pactl info. So i think it should not matter

if you have gnome control center installed you can check the device there

image
Everything's fine, sound is being showed

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

it gets the default audio source as stated in pactl info. So i think it should not matter

if you have gnome control center installed you can check the device there

I reinstalled mousai a couple of times, rebooted a few times and now it's working, even though I never touched anything in my sound settings and never after installed any sound-related packages

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

that's really weird, may you show the output of pactl info? it may be helpful

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

that's really weird, may you show the output of pactl info? it may be helpful

Will it be an issue that it's in a different language? I can change my local and reboot, if it is an issue

Строка сервера: /run/user/1000/pulse/native
Версия протокола библиотеки: 35
Версия протокола сервера: 35
Выполняется локально: да
Номер клиента: 9
Размер блока памяти: 65472
Имя пользователя: anonymous
Имя хоста: MyCompooter
Имя сервера: pulseaudio
Версия сервера: 15.0
Спецификация отсчётов по умолчанию: s16le 2-канальный 4410
Схема каналов по умолчанию: front-left,front-right
Аудиоприёмник по умолчанию: alsa_output.pci-0000_29_00.6.analog-stereo
Источник по умолчанию: alsa_output.pci-0000_29_00.6.analog-stereo.monitor
Cookie: 88e2:4950

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

that's really weird, may you show the output of pactl info? it may be helpful

And by the way, after I completely removed GNOME DE from my PC (sudo pacman -Rsc gnome), reinstalled mousai (dependencies broke) and rebooted my PC - Mousai doesn't work again XD

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

that's really weird, may you show the output of pactl info? it may be helpful

What do I need to install for Mousai to work in my DWM? There's a really big package list in a "gnome" pack, I don't know what exactly I have to install

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

that's really weird, may you show the output of pactl info? it may be helpful

So I looked thru the list of packages of GNOME and installed soundtouch, rebooted - now Mousai works...

I'm fairly new to linux and I don't know what this package does, but it worked out for me.
BTW, here's my pactl info after I installed soundtouch:

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 6
Tile Size: 65472
User Name: anonymous
Host Name: MyCompooter
Server Name: pulseaudio
Server Version: 15.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_29_00.6.analog-stereo
Default Source: alsa_output.pci-0000_29_00.6.analog-stereo.monitor
Cookie: 9aa9:ebc6```

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

Guess I have to close this issue...

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

No... This issue is here again, after a reboot. Is this because Arch is weird or because I am? =)

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

im not sure either whats happening :D
but the output of pactl info seems normal

Does the terminal output something when the audio is not being recorded?

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

im not sure either whats happening :D
but the output of pactl info seems normal

I'm using a Suckless's Dynamic Window Manager and the only things that launch (except systemctl enabled by default) when I start my .xinitrc are DWM, Nitrogen, Picom and LXSession. Maybe I need to launch smth else? soundtouch is not executable.

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

since pactl info is working, i think nothing else.

terminal output, if any, while reproducing the issue may be helpful too, as you may have a missing plugin

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

since pactl info is working, i think nothing else.

terminal output, if any, while reproducing the issue may be helpful too, as it may be a missing plugin

So I changed my locale so it's readable for you, restarted and... And Mousai worked!

After the previous reboot I INSTALLED NOTHING and DID NOTHING else.

Maybe it's the issue with locales???

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

And again pactl info:

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 2
Tile Size: 65472
User Name: anonymous
Host Name: MyCompooter
Server Name: pulseaudio
Server Version: 15.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_29_00.6.analog-stereo
Default Source: alsa_output.pci-0000_29_00.6.analog-stereo.monitor
Cookie: 8636:7b9d```

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

ah yess i think so, ironically, lmao

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

to validate, it would be helpful to check the output of mousai when run on terminal

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

to validate, it would be helpful to check the output of mousai when run on terminal
So I rebooted with my default ru_RU.UTF-8 locale again, and my theory is working - it's the issue with locales.

And here is the terminal output of Mousai with my ru_RU.UTF-8 locale you asked for:


(io.github.seadve.Mousai:2326): GStreamer-CRITICAL **: 16:34:47.452: _gst_util_uint64_scale: assertion 'denom != 0' failed

(io.github.seadve.Mousai:2326): GStreamer-CRITICAL **: 16:34:47.452: gst_segment_to_running_time: assertion 'segment->format == format' failed

(io.github.seadve.Mousai:2326): GStreamer-CRITICAL **: 16:34:47.452: gst_segment_to_stream_time: assertion 'segment->format == format' failed
Error: gst-resource-error-quark: Failed to connect stream: Недопустимый параметр (1) ../gst-plugins-good/ext/pulse/pulsesrc.c(1619): gst_pulsesrc_prepare (): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0
Error: gst-stream-error-quark: Internal data stream error. (1) ../gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:
streaming stopped, reason not-negotiated (-4)
Traceback (most recent call last):
  File "/usr/local/share/mousai/mousai/backend/voice_recorder.py", line 94, in _on_gst_message
    self.props.peak = message.get_structure().get_value('peak')[0]
IndexError: list index out of range

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

to explain why it is happening, mousai gets the 3rd word of 13th line of the output of pactl info. so in certain locales, it will have different number of words and yields unexpected results

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

that's really weird, may you show the output of pactl info? it may be helpful

So I looked thru the list of packages of GNOME and installed soundtouch, rebooted - now Mousai works...

I'm fairly new to linux and I don't know what this package does, but it worked out for me.
BTW, here's my pactl info after I installed soundtouch:

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 6
Tile Size: 65472
User Name: anonymous
Host Name: MyCompooter
Server Name: pulseaudio
Server Version: 15.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_29_00.6.analog-stereo
Default Source: alsa_output.pci-0000_29_00.6.analog-stereo.monitor
Cookie: 9aa9:ebc6```

And yes, here my locale was still changed to english en_US.UTF-8 =)
Just to clarify.

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

ill push a fix, thanks for the help

Could you please notify me (e.g. close this issue or just ping me here) when this issue is fixed in the AUR package?

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

im not the maintainer there, so not sure, but it should come a few hours after i do release on flathub

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

just published the hopeful fix

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

you can quickly test through https://github.com/SeaDve/Mousai/suites/3713534434/artifacts/90752673 if you have flatpak

from mousai.

SeaDve avatar SeaDve commented on May 28, 2024

@KpauMupa the fix seems to be pushed to AUR see version 0.6.6

from mousai.

KpauMupa avatar KpauMupa commented on May 28, 2024

Mousai 0.6.6-1 from the AUR - the issue with ru_RU.UTF-8 locale is still there;
compiled Mousai from source (this repo) - everything's fine =)

from mousai.

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.