Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Why Console.Beep() is not working with windows server 2012 R2 any suggestions?

Regards,
Sathish
Posted

The server either doesn't have a speaker connected, doesn't have audio drivers installed, or the audio hardware is bad.

That's the complete pool of possible problems.
 
Share this answer
 
Comments
Sathish1243 24-Mar-15 9:25am    
Ok fine. But why that speech is coming with audio drivers.
like i have used to generate a text to speech class and given some text to that class and run it from same RDP machine but this time text is coming as a audio sound.
But why not Beep()
Dave Kreskowiak 24-Mar-15 9:45am    
Because Beep usually goes through the computer speaker, not the audio system. Remember, Beep came along LONG before the invention of the sound card.

Either the driver is not installed for the computer speaker or it's not connected.

On server hardware, it's entirely possible that the internal speaker doesn't exist.
Sathish1243 24-Mar-15 10:08am    
Ok but i observed that while dragging mouse over volume in the RDP server its getting some internal sound but why not using beep() method.

Thanks for the posts.
Dave Kreskowiak 24-Mar-15 10:52am    
Because the volume control goes over the audio card, not the internal speaker.

The internal speaker does not have a volume control unless there is a knob on the front of the machine.
It's possible that the "beep" service is stopped, or the internal speaker is disabled:
Turning off the cmd window beep sound[^]
How can I disable or enable the internal speaker?[^]

Either of these would leave the soundcard operational, but prevent Console.Beep from beeping.
 
Share this answer
 
Comments
Sathish1243 24-Mar-15 10:14am    
No everything will be fine i have checked all the sound and speaker enabled options. But why that speech is coming with audio drivers.
like i have used to generate a text to speech class and given some text to that class and run it from same RDP machine but this time text is coming as a audio sound.
But why not Beep()
Richard Deeming 24-Mar-15 10:18am    
Beep does not use the soundcard. It uses the computer's internal speaker - a very old component which pre-dates the soundcard. This can be disabled without affecting the soundcard, which is why regular audio is still working.
Sathish1243 24-Mar-15 10:30am    
But in my local system its working as expected But in windows server 2012 R2 its not working.
Richard Deeming 24-Mar-15 10:32am    
Your local system and the server are TWO DIFFERENT COMPUTERS.

It is perfectly possible to disable the internal speaker on one computer without affecting a completely different computer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900