Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Playing the audio files.
PostPosted: Tue Jun 19, 2012 2:51 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 161

Offline
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


 Profile  
 
 Post subject: Re: Playing the audio files.
PostPosted: Tue Jun 19, 2012 7:43 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
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.


Attachments:
SampleSoundA7A12.zip [669.78 KiB]
Downloaded 334 times

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer
 Profile  
 
 Post subject: Re: Playing the audio files.
PostPosted: Tue Jun 19, 2012 9:19 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 161

Offline
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?


 Profile  
 
 Post subject: Re: Playing the audio files.
PostPosted: Tue Jun 19, 2012 11:37 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
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.

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Playing the audio files.
PostPosted: Tue Jun 19, 2012 1:40 pm 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
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.

Attachment:
Snap 2012-06-19 at 14.37.48.jpg
Snap 2012-06-19 at 14.37.48.jpg [ 26.45 KiB | Viewed 4001 times ]


Attachment:
Snap 2012-06-19 at 14.35.30.jpg
Snap 2012-06-19 at 14.35.30.jpg [ 61.79 KiB | Viewed 4001 times ]

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Playing the audio files.
PostPosted: Fri Jun 22, 2012 6:33 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 161

Offline
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?


 Profile  
 
 Post subject: Re: Playing the audio files.
PostPosted: Fri Jun 22, 2012 8:37 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
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.

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: