Page 1 of 1
Playing the audio files.
Posted: Tue Jun 19, 2012 2:51 am
by wlederer
Is it possible to play the audio files (MP3 for example) through the USB (or, maybe other output). Or, even more attractive, put somewhere text in a script and speak it aloud?
regards, Waldemar
Re: Playing the audio files.
Posted: Tue Jun 19, 2012 7:43 am
by mark.monroe
I have attached a project that has a button that allows you to play a .wav sound on the QTERM-Ax HMIs. With MP3s you need a codec to play them. The WAV codec is already in the terminal, and is the easiest format to use.
Re: Playing the audio files.
Posted: Tue Jun 19, 2012 9:19 am
by wlederer
Thank You Mark. Opened the project, run it on my laptop (windows 7 pro) iX Developer 1.31, got the error message about coredll.dll. Tried on my desktop (WinXP pro) iX Developer 2.0 demo. Got the same errror. Should I add the file into the project? How?
Looked into script. It is not clear where sounds are sent to? Can we play them on an external USB player?
Do You recommend to download the project to T7A?
Re: Playing the audio files.
Posted: Tue Jun 19, 2012 11:37 am
by mark.monroe
The
coredll.dll is part of Windows CE. You can only test the project after it has been downloaded to a HMI that uses Windows CE.
Re: Playing the audio files.
Posted: Tue Jun 19, 2012 1:40 pm
by mark.monroe
In iX 2.0 the Media player has the ability to play mp3's when the project target is a PC. When the project targets a Windows CE based HMI, then you can only play mpeg and wmv files. You could put a media player on the screen and then make the player invisible. Next, create a button that runs the play method on the invisible media player. That will play your sound. It may be easier than the code I sent you. And it will work on the PC as well.
- Snap 2012-06-19 at 14.37.48.jpg (26.45 KiB) Viewed 15553 times
- Snap 2012-06-19 at 14.35.30.jpg (61.79 KiB) Viewed 15553 times
Re: Playing the audio files.
Posted: Fri Jun 22, 2012 6:33 am
by wlederer
Thank You Mark. Can we play something outside the HMI. For example, inform operator verbally about an event through an external loudspeaker?
Can we play something, using the version 1.31 of iX Developer?
Re: Playing the audio files.
Posted: Fri Jun 22, 2012 8:37 am
by mark.monroe
If your unit doesn't have an audio jack, then no, you can not play it through an external speaker. iX 1.31 has a media player as well.
The best thing to do is try and see how it works for you. Some HMI's do not support the Media player, and in that case you will not be able to use that solution.
Not all HMIs have an internal speaker.