0

We are running Asterisk 1.2 (working on an upgrade) and in another building have a Morantz sound system that is connected to the same subnet as Asterisk.

Can I use Asterisk to play a wav file over the Morantz's speakers?

My idea is to use a Cisco Port Adapter to convert the digital line into analog and then plug the analog into the RCA ports of the Morantz. (see my question on SuperUser about the RJ11 to RCA conversion) I've done this in a different building with a Viking ZPI-4 Paging Interface, and use a "5" tone to tell the interface that the incoming data is to be played over a certain speaker zone. Asterisk already knows how to play a bell tone. With the Viking setup, since I have an ip address on the Port Adapter for it, I originate a call from the port adapter and Asterisk basically calls up the Viking like it was a phone.

The problem with the other building is that I don't have a Viking PA system rigged with speakers. Instead I have a Morantz. (It's actually hooked to a Control4, but I'm trying to get rid of the Control4 since the rep who admins it is never available and doesn't service us well). So I want to play the wav file over the speakers attached to the Morantz.

But I am wondering that since the Morantz has a network connection (I can access it's web-interface), can I just send the sound directly over the Morantz?

Any ideas in this regard are welcome.

  • what do you want to play? asterisk is a pbx not a music player. – user55518 Mar 14 '14 at 21:46
  • @bersch, ye of little imagination... – Ricky Beam Mar 14 '14 at 21:47
  • @bersch - the wav file is a bell tone like in a school. – bgmCoder Mar 14 '14 at 21:49
  • Well, we have that Morantz with wireless speakers. It's hooked to a Control4, actually, but I can't work with the Control4 (I want to get rid of it, in fact), and want to work directly with the Marantz. I just want to play the tones over the speakers. – bgmCoder Mar 14 '14 at 21:54
1

If you can get line-level audio to it, of course. If you want to send a wav (or mp3) over the network, then you have some digging to do. Click the "download" tab on the Morantz page you linked to find the remote command set to control the receiver. The most direct option would have asterisk run a script to send the necessary commands to the receiver, generate the necessary audio, and turn off the receiver / put it back to whatever it was already doing.

  • I don't know how to get line-level audio to it. That thread of mine at Super-User was basically about that. I just have the LAN connections. By "receiver" - are you referring to the RCA ports? I am adding a few notes to my question. By "remote command" you mean IR command, right? That makes it difficult. – bgmCoder Mar 14 '14 at 21:55
  • "AV Receiver" Commands can be sent to it via a serial port or over the network -- much like an IR remote, but far less complicated; this is generally how a "home automation" system interfaces with it. To use RCA line-in, you'll need a sound card or some other network based device. – Ricky Beam Mar 14 '14 at 22:49
  • (or maybe a usb thumb drive with the sound file on it, then send the necessary commands to get the receiver to play it.) – Ricky Beam Mar 14 '14 at 22:50
  • Are you saying that the Marantz will let me send commands over the network? I have the command listing from the site. I'm still missing something though - how do I send the commands (thanks for your time!)? – bgmCoder Mar 15 '14 at 0:44
1

You can connect asterisk channel to asterisk-alsa(local audio card of server)

After that you can connect sound card output to audio-in "Analog L&R In 6 (including Front mini jack input)" at your system.

  • Can you expand on that a little? I'm afraid I am not quite up to the level yet. By asterisk channel, do you mean the channel being the assigned extension? How do I assign a channel to a sound card? (I'm sorry!) "...in 6" - what is 6? – bgmCoder Mar 15 '14 at 13:58
  • See voip-info.org/wiki/view/Asterisk+config+alsa.conf. That one in quote is part of device description. – arheops Mar 15 '14 at 18:46
  • So are you meaning that if I connect the Marantz's audio-in port to the Asterisk's box's sound card, I can play directly over the Marantz? – bgmCoder Mar 15 '14 at 21:10
  • Yes. Audio card output have be compatible with audio-in(sure if you have cable). You will be able do upto 1 channel from asterisk to audio card. If you need more then 1, you probably need use second card(usb or other pci). – arheops Mar 16 '14 at 2:10
  • Also if you have optical output on your card(can be on top-end desktop boards or dedicated cards), you can use optical sound port for connect both devices. Optical cable can be extreamly long, but it also extreamly costly. – arheops Mar 16 '14 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.