I am working on a call boar开发者_JAVA技巧d for the hospital I work for. The call board will be used for announcing CODES, FIRE, and a few other types of calls. My problem is that I am trying to play two WAV files consecutively the first file is the type of call and the second file is the location. We have over 700 possible locations and I do not want to have thousands of pre-made recordings. Please help. Also I have thought about using a speech speech synthesizer like Microsoft ANNA.
Save the audio clips as MP3s. Concatenating them is simple - simply output one after the other. MP3s have no internal structure beyond a "frame". An MP3 file is simply a series of these frames, which can be mixed in with other data (ie: mpeg video).
<?php
header('Content-type: audio/mpeg');
readfile('good.mp3');
readfile('morning.mp3');
readfile('zombie attack.mp3');
readfile('imminent.mp3');
readfile('arm yourself.mp3');
Of course, doing this sort of thing via a web inteface seems silly. How would you tell the PA system to poke at the server to play something?
精彩评论