ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
635 stars 74 forks source link

[CS:S and TF2] No voice input VIA HD Audio [Updated] #106

Closed jorgenpt closed 11 years ago

jorgenpt commented 11 years ago

Issue transferred from ValveSoftware/steam-for-linux#1307 @gutigen posted at 2013-02-06T09:52:04Z:

I can hear people talking on voice chat, but they can't hear me. Mic is working in Skype, TS3 and any other app. Everything in CS:S and TF2 voice options is fine (sliders at max).

"Test microphone" in game shows that mic is working. Tried switchting to AC97 and back to HD Audio, still not working.

My Sound settings in System Settings looks like this: http://ubuntuone.com/68LL3H9pInBfBtwSaXGoGE So I installed Pulse Audio Volume Control from Ubuntu repository (pavucontrol package) and there I got my mic visible with monitors showing it's working, I checked every single setting for it, no effect. Another thing I've noticed is that "test microphone" tool in game doesn't work anymore after I join any server, I have to start game again to use it.


Worked for a moment with this fix (doesn't anymore after few restarts for some reason):

Go to Bios > Chipset > Front Panel (or something like that), change it to AC97, boot your system. Now follow this steps: https://help.ubuntu.com/community/HdaIntelSoundHowto.


Ubuntu 12.10 Gnome Remix Kernel 3.5.0-23 VIA VT1708S Terminal output: https://gist.github.com/gutigen/4735323 Analog headset

jorgenpt commented 11 years ago

@spacelike posted at 2013-02-06T18:05:27Z:

Same issue here. I can hear myself when testing the microphone in the voice options tab but people in game can't hear me even though I can hear them.

jorgenpt commented 11 years ago

@spacelike posted at 2013-02-07T00:29:16Z:

Actually this is no longer an issue for me.

Which is weird because I didn't notice any updates to CSS. I was testing it with a brand new microphone so it's also possible I was just doing something stupid. Also, my system just went through several updates, so if it was an issue before perhaps it was fixed there.

But I did confirm just now that others could hear me on the mic.

jorgenpt commented 11 years ago

@bdeen-valve posted at 2013-02-07T23:40:22Z:

This seems to work here...and you're no longer hearing an issue.

@gutigen: if you could get me more information ala, https://github.com/ValveSoftware/steam-for-linux#reporting-issues, that would be helpful.

OneCrazyRussian commented 11 years ago

I think I have the same type of bug, but using my usb mic via Creative VF0560 Live! Cam It works in GoldSrc games for example (though there's a slight delay between button press and camera activation, I like the way it works on Windows, as camera stays powered on all the time) but not in Source games (CS:S and TF2) It also works in Steam setings, same as described above. Using Ubuntu 12.10, PulseAudio, Asus Supreme FX 2 (disabled), Creative X-Fi Xtreme Audio and aforementioned Creative VF0560 Live! Cam It doesn't work in-game though it seem to be good when not connected to server and running pulseaudio settings in background

bcurtiswx commented 11 years ago

I also have this issue.

Microphones works in everything but in a server. The steam tests work, but as soon as I get in-game it doesn't work

Processor Information: Vendor: GenuineIntel Speed: 2394 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Unsupported SSE42: Unsupported

Network Information: Network Speed:

Operating System Version: Ubuntu Raring Ringtail (development branch) (64 bit) Kernel Name: Linux Kernel Version: 3.8.0-7-generic X Server Vendor: The X.Org Foundation X Server Release: 11302000 X Window Manager: Compiz Steam Runtime Version:

Video Card: Driver: NVIDIA Corporation GeForce GTX 465/PCIe/SSE2

Driver Version:  4.3.0 NVIDIA 310.14
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x10de
DeviceID:  0x6c4
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 3360 x 1080
Primary Display Size: 20.04" x 11.26"  (22.95" diag)
                                        50.9cm x 28.6cm  (58.3cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1023 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: SigmaTel STAC9271X

Memory: RAM: 7917 Mb

Miscellaneous: UI Language: English LANG: en_US.UTF-8 Microphone: Not set Total Hard Disk Space Available: 368234 Mb Largest Free Hard Disk Block: 241847 Mb

Installed software:

Recent Failure Reports:

ghost commented 11 years ago

Still have this problem in Ubuntu 13.04.

brl1214 commented 11 years ago

Same problem i had to set voice_forcemicrecord to 0 just to get the ingame test to work before I join a server.

Does servers auto force the mentioned cvar?

shuhaowu commented 11 years ago

Any update to this issue?

matthewsor commented 11 years ago

Servers can disable voice (sv_voiceenable 0) We've tried to reproduce this problem here but weren't able to. There were configure issues with mics and volume controls under Linux but once those were sorted out we were able to get voice to work in TF hooking to a number of different servers.

There are a couple of console commands that might help, voice_clientdebug 1 should show when you are talking.

In TF to do voice chat you must hold the button (default key is v) it doesn't work like Steam with auto voice.

shuhaowu commented 11 years ago

For the voice_clientdebug, where are the output? In CS:S console or regular terminal?

matthewsor commented 11 years ago

The CS:S console. If you start steam from a terminal then, the game you'll also get it there (sometimes easier to copy/paste from)

But a warning: voice_clientdebug is very chatty.

The more details you can give us, the better chance we can reproduce this and fix it.

shuhaowu commented 11 years ago

Testing from options while in server:

CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1
CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 1
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0
CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 0
CVoiceStatus::UpdateServerState: no change

Testing with pressing k while in server.

CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0
CVoiceStatus::UpdateServerState: no change



AnatolyRugalev commented 11 years ago

I have the same issue.

Processor Information:
    Vendor:  GenuineIntel
    Speed: 3300 Mhz
    4 logical processors
    2 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    Ubuntu 12.10 (32 bit)
    Kernel Name:  Linux
    Kernel Version:  3.5.0-23-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11300000
    X Window Manager:  Compiz
    Steam Runtime Version:  <Runtime enabled>

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 550 Ti/PCIe/SSE2

    Driver Version:  4.3.0 NVIDIA 310.14
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 75 Hz
    VendorID:  0x10de
    DeviceID:  0x1244
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1280 x 1024
    Desktop Resolution: 2560 x 1024
    Primary Display Size: 13,31" x 10,67"  (17,05" diag)
                                            33,8cm x 27,1cm  (43,3cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 1023 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC889

Memory:
    RAM:  8079 Mb

Miscellaneous:
    UI Language:  English
    LANG:  ru_RU.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  79499 Mb
    Largest Free Hard Disk Block:  5984 Mb

Installed software:

Recent Failure Reports:
    Sat Feb 23 04:52:50 2013 GMT: file ''/tmp/dumps/assert_20130223105248_1.dmp'', upload yes: ''CrashID=bp-5d0bd595-fae1-455d-941d-6e54a2130222''

Talking in microphone test before server join:

CVoiceStatus::UpdateServerState: g_bLevelInitialized
CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0
CVoiceStatus::UpdateServerState: g_bLevelInitialized
CVoiceStatus::UpdateServerState: g_bLevelInitialized
CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 1
CVoiceStatus::UpdateServerState: g_bLevelInitialized
CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0

Talking in microphone test after server join:

CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1
CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 1
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0
CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 0

In-game talking:

CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1
CVoiceStatus::UpdateServerState: no change
CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0
brl1214 commented 11 years ago

Same issue I can talk on tf2 and get bug #1853 but on css I had to use cvar voice_forcemicrecord 0 just to get the ingame test to work and than when I jumped into a server it killed it.

shuhaowu commented 11 years ago

I just saw my mic work on a different server (this one has all talk on). However, the volume indicator in test mic is broken. Here's the server where mic fails: http://www.gametracker.com/server_info/66.225.195.199:27015/

brl1214 commented 11 years ago

Something causing microphone to not work on joining of server the in game test and steam overlay test both work but when you join a server it kills the mic.

Sleris commented 11 years ago

I do have the exact same problem here.

I use steam and CSS under linux (gentoo), using PulseAudio as a sound server (with Alsa backend). My microphone and setup is working fine with TeamSpeak and Mumble and in CSS and steam in the settings, I do here my voice back here. But as soon as I'm ingame, it stop working.

Using pavucontrol to monitor the microphone, when I'm in the settings, I do see the CSS application using record when I do the test,, but when I'm ingame, the application stop being there. It just seems that when we press the voice button the game is not listening to the microphone as it is when we are in the settings.

greyjanthesane commented 11 years ago

I have similar problems. I've tried with my XLR mic (into a mixer which goes into the mic port), via my USB headset and via my USB webcam. No one hears what I say. I've tried checking in-game voice settings... Mic test doesn't respond at all (rather no output is 'heard').

My device in Steam is set to PulseAudio Default. Tried Alsa Default and setting it to each individual mic too. No effect.

kellerman commented 11 years ago

I have the same problem. I'm using ALSA and ArchLinux x86_64. The sound seems to work quite well in Steam and CS 1.6, but for CS:S when I get ingame, the sound disappears (microphone input). I tried my internal and external usb audio card, with both the same. When no server has been joined, I can test the mic with both CS:S and Steam, after then - can't. I have made modifications to my ALSA config, if this matters (enabling dsnoop for recording from multiple applications simultaneously). http://pastebin.com/pnW10E9Z

With voice_clientdebug enabled I get something like this when the mic stopped working: CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1 CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 1 CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 0 CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 0 CVoiceStatus::UpdateSpeakerStatus: ent -1 talking = 1 CVoiceStatus::UpdateSpeakerStatus: ent -500 talking = 1

Before that (when the mic works with game tester) infinite loop of this:

CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 1 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0 CVoiceStatus::UpdateServerState: g_bLevelInitialized CVoiceStatus::UpdateSpeakerStatus: ent -3 talking = 0

EricMCarroll commented 11 years ago

I can reliably repeat the inability to use a Mic in CS:S in-game with a USB connected MIC as follows:

  1. Set the mic in Sound Settings / Input tab to correct hardware (AK5370 USB mic) and test it (works)
  2. Start Steam, test mic (works).
  3. Start CS:S, go to voice tab, test mic (works)
  4. Enter sever, go to Options/voice tab, test mic (fails).
  5. Test mic during game, (fails)

This happens no matter what Steam mic test has for selected hardware: pulse, ALSA or raw device.

There is a suggested workaround of setting voice_forcemicrecord=0 in cfg/config.cfg

I notice in my config.cfg voice_forcemicrecord =1.

I changed config.cfg to: voice_forcemicrecord=0

But this is overwritten during the game play at some point. I confirmed this by checking the file change time.

Any ideas on workarounds?

I am running Ubuntu 12.10 with latest Steam beta client.

Processor Information:
    Vendor:  GenuineIntel
    Speed: 3401 Mhz
    4 logical processors
    4 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    Ubuntu 12.10 (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.5.0-26-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11300000
    X Window Manager:  Compiz
    Steam Runtime Version:  steam-runtime-release-i386_2013-03-22

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 680/PCIe/SSE2

    Driver Version:  4.3.0 NVIDIA 310.14
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 59 Hz
    VendorID:  0x10de
    DeviceID:  0x1180
    Number of Monitors:  1
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1200
    Desktop Resolution: 1920 x 1200
    Primary Display Size: 20.39" x 12.76"  (24.02" diag)
                                            51.8cm x 32.4cm  (61.0cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC898

Memory:
    RAM:  32125 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_CA.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  3739205 Mb
    Largest Free Hard Disk Block:  3341430 Mb

Installed software:

Recent Failure Reports:
kellerman commented 11 years ago

Try creating autoexec.cfg in the same directory. then echo "voice_forcemicrecord=0" >> autoexec.cfg I'll try this when I get some other work done.

bcurtiswx commented 11 years ago

This does not fix the issue.

On Mon, Mar 25, 2013 at 1:51 PM, kellerman notifications@github.com wrote:

Try creating autoexec.cfg in the same directory. then echo "voice_forcemicrecord=0" >> autoexec.cfg I'll try this when I get some other work done.

— Reply to this email directly or view it on GitHubhttps://github.com/ValveSoftware/Source-1-Games/issues/106#issuecomment-15409304 .

Research is what I'm doing when I don't know what I'm doing. --Wernher Von Braun "The second law of thermodynamics: If you think things are in a mess now,

JUST WAIT!!"

The Statement Below is True

The Statement Above is False

kellerman commented 11 years ago

Actually setting that parameter to 0 doesn't help me at all, when into a server, still no mic input.

EricMCarroll commented 11 years ago

Actually, this does help, intermittently and temporarily.

For the first server I join (usually), the MIC works with voice_forcemicrecord=0 . I am not sure yet if it is game change or server change that causes it to stop working again. In some cases it didn't seem to have an effect.

I will try checking this cvar from the console and see if it is being reset and when.

myfreedom commented 11 years ago

Same problem AMD Athlon x2 5600+ 3 Gb DDR2 Radeon HD3870 with fglrx-legacy 13.1 Gigabyte MB AMD 740G chipset HDA Ubuntu 12.10, Gnome-shell, PulseAudio (all settings default, works great in CS: CZ for example)

Mic doenst work after joining server

kellerman commented 11 years ago

Try the steampipe beta channel for CS:S, the mic issue seems to be fixed for me. Altrough most servers wont work for a while.

myfreedom commented 11 years ago

Suddenly now it works. What I've done: updated CSS to beta (Steampipe), I couldnt connect to any server. I quit from beta to normal client version - mic started to work perfect

kellerman commented 11 years ago

Hmm, I deleted the old folder (steampipe version) from steamapps and downloaded the normal CS:S again. Mic didn't work with the normal version. With steampipe version it does work perfect, that's for sure.

kellerman commented 11 years ago

EDIT: actually now it works on some servers (steamed), some other non-steam servers still fail to record audio

jorgenpt commented 11 years ago

@EricMCarroll, @myfreedom, @kellerman, etc: When it does not work, what is "sv_use_steam_voice" set to? This sounds like #33.

jorgenpt commented 11 years ago

If anyone is experiencing problems with audio recording not working when on a server where sv_use_steam_voice is set to 1, please open a new issue. Closing this as a dupe of #33.

kellerman commented 11 years ago

@jorgenpt good find! It's a shame that there is no backward compability. Most servers use the old codec out there.

rnz commented 10 years ago

same problem with usb webcam mic

Processor Information: Vendor: GenuineIntel CPU Family: 0x6 CPU Model: 0x1a CPU Stepping: 0x5 CPU Type: 0x0 Speed: 3201 Mhz 8 logical processors 4 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: Ubuntu 14.04 LTS (64 bit) Kernel Name: Linux Kernel Version: 3.13.0-24-generic X Server Vendor: The X.Org Foundation X Server Release: 11501000 X Window Manager: Openbox Steam Runtime Version: steam-runtime-release_2014-04-15

Video Card: Driver: ATI Technologies Inc. AMD Radeon HD 7800 Series

Driver Version:  4.4.12874 Compatibility Profile Context 14.10.1006
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x1002
DeviceID:  0x679e
Number of Monitors:  1
Number of Logical Video Cards:  1
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 1920 x 1080
Primary Display Size: 23,54" x 13,23"  (26,97" diag)
                                        59,8cm x 33,6cm  (68,5cm diag)
Primary VRAM Not Detected

Sound card: Audio device: Realtek ALC888

Memory: RAM: 24104 Mb

Miscellaneous: UI Language: English LANG: en_US.UTF-8 Microphone: Not set Total Hard Disk Space Available: 871948 Mb Largest Free Hard Disk Block: 119956 Mb

g105b commented 9 years ago

+1 this affects me too, Ubuntu 14.10 64bit. Tried USB sound card and USB mic with inbuilt sound card, neither work.