[TIPS] give voice to Easyiot

8 years 8 months ago - 8 years 8 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.178 seconds

Forum latest

  • No posts to display.