[TIPS] give voice to Easyiot

9 years 3 months ago - 9 years 3 months ago #2027 by bit
hello,
just a little snippet to play sounds on events.
put audio files in easyoit/sounds ("sounds" folder must be created) then add this code in automation program:
System.Media.SoundPlayer player = new System.Media.SoundPlayer("sounds/audio.wav");
player.Play();

hope this help.

I'm sorry for my poor english.

Please Log in or Create an account to join the conversation.

Time to create page: 0.216 seconds

Forum latest

  • No posts to display.