HLDJ playing from mic instead of from file

Help with using HLDJ
Post Reply
Neopolis
Game DJ
Posts: 4
Joined: Sat Oct 23, 2010 5:45 pm

HLDJ playing from mic instead of from file

Post by Neopolis »

Now, first of all, I want to stress that I tried this on several servers, including a privately hosted one and a private practice one, and all of them had cv_allow_voice_from_file 1. So that's not the problem.

But yeah! Instead of playing the sounds from my audio folder, it plays sounds from my microphone. Here's the required questions and their answers...

1) Does HLDJ launch the game correctly for you?
Runs normally.

2) Does "HLDJ Loaded Successfully" appear in console on starting the game (with no errors)?
Yes. (Technically, there are errors, but those are related to custom skins and not related to HLDJ.)

3) What is the console output after selecting a song, or issuing other HLDJ commands such as "hldj_next"?
] hldj_next
Loaded: sample_src
Host_WriteConfiguration: Wrote cfg/hldj_cmd_d.cfg

4) After loading one of the sample audio files, perform a search of your Steam directory (without stopping HLDJ) for the file "voice_input.wav" - does it show up, and if so, where?
It shows up in the "D:\Steam\steamapps\.....\team fortress 2" folder. Listening to it produces the normal sample_src sound.

5) Does voice normally work for you? If not, or you do not have a mic, have you remembered to set up any applicable options in your operating system and/or the game?
I can use voice chat properly. In fact, running this program makes me run voice chat even when I don't want to.



Any thoughts? I'm using Windows 7 on an admin account, for the record.
User avatar
uggron
HLDJ Tester
HLDJ Tester
Posts: 107
Joined: Thu Jul 01, 2010 3:51 am

Re: HLDJ playing from mic instead of from file

Post by uggron »

Thank you for being rather intelligent with your post. This used to be a common problem, but it should have been fixed in a recent version of HLDJ. Are you using either 1.6.0 a7 or a10?
Neopolis
Game DJ
Posts: 4
Joined: Sat Oct 23, 2010 5:45 pm

Re: HLDJ playing from mic instead of from file

Post by Neopolis »

Yes, I saw the sticky on it but figured it wasn't the same thing since it dated from '09...

I used a7 first, and upon figuring out that it didn't work, downloaded a10. It still didn't work.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ playing from mic instead of from file

Post by Renegade »

To see whether it may be a problem with the game, try the following without using HLDJ at all:
1. Copy-paste the sample file you downloaded into the same directory where "voice_input.wav" appeared and rename it "voice_input.wav"
2. Start the game, create a local game/server (with sv_allow_voice_from_file 1)
3. Enter the following into console:

Code: Select all

voice_modenable 1; voice_forcemicrecord 0; voice_inputfromfile 1; voice_loopback 1; +voicerecord
4. Do you hear the audio playing?

if the answer to #4 is "no", then something could be wrong with the game or its configuration/cvars. Try re-installing.
Neopolis
Game DJ
Posts: 4
Joined: Sat Oct 23, 2010 5:45 pm

Re: HLDJ playing from mic instead of from file

Post by Neopolis »

Yes, using those console commands, I can hear the sample file playing just fine.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ playing from mic instead of from file

Post by Renegade »

Using 1.6.0a7, load your file, and then play it. If it doesn't play, use the commands from step #3 to play the audio file instead of your playaudio key. If this works, check that your playaudio key is bound correctly and not being re-bound elsewhere. If it doesn't work, post a screenshot showing the directory where voice_input.wav shows up, along with its file properties.
Neopolis
Game DJ
Posts: 4
Joined: Sat Oct 23, 2010 5:45 pm

Re: HLDJ playing from mic instead of from file

Post by Neopolis »

Well, I don't even know what happened, but after trying again the next day things seemed to work just fine... Maybe it's because I made the computer start up with a microphone plugged in instead of plugging it in while it was on... In any case, thank you all for your help, and sorry for wasting your time.
Post Reply