PDA

View Full Version : From Hackaday - "Squeezebox Audible Caller ID" project



ddewey
2006-06-06, 08:35
"Ben loved using his Squeezebox music streamer, but every time the phone
rang he would have to pause the music. Once the phone call was complete he
wouldn't remember to start the music again. He decided to automate the
entire process. His circuit is a combination of a couple different circuits
he found online: a ring detector, an on/off hook detector, and an audio
interface. Most of his article details how caller ID signals are encoded and
how he decodes them. Now whenever the phone rings the music is automatically
paused. Between rings the Squeezebox announces who is calling. When the
phone is placed back on the hook the music automatically starts again.

http://www.hackaday.com/

Lowrent
2006-06-06, 09:01
That's very cool but highly complicated to build.

Wouldn't we be able to achieve the same results with only a 56kbps modem in the PC ??

CouchPotatoe
2006-06-06, 09:41
This is already possible with xAP and either a CID modem or the
NetCallerID telephone device. In the UK a Meteor/Pegasus or a Pace CID
modem is supported the former provides outgoing call support too Using
the free xAPSwitchboard you can also have lookup and display on the Slim
music player of the Callers Name and STD locality (UK), this can be
synchronised with your Outlook address books . Also a full web
accessible call log is maintained, you can even click on a contact and
see the callers location in Google Maps.

It takes a few components all working together to get this going but if
people are interested I'll write up a short 'how to', it's fairly easy
once you know how.

K

Screenshot of web interface here
http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=38
(requires a Windows PC somewhere on your network but supports all
platforms of SlimServer)

Lowrent wrote:
> That's very cool but highly complicated to build.
>
> Wouldn't we be able to achieve the same results with only a 56kbps
> modem in the PC ??
>
>
>

jimdibb
2006-06-06, 09:47
The yac2slim http://www.savardsoftware.com/yac2slim/ package already outputs
caller Id stuff to the SB. It seems like it would be pretty simple to have
the music pause at least. Getting it restarted might still require a button
push.

On 6/6/06, Kevin Hawkins <lists (AT) ukusa (DOT) demon.co.uk> wrote:
>
> This is already possible with xAP and either a CID modem or the
> NetCallerID telephone device.




Lowrent wrote:
> > That's very cool but highly complicated to build.
> >
> > Wouldn't we be able to achieve the same results with only a 56kbps
> > modem in the PC ??
> >
> >
> >
>
>

Lowrent
2006-06-06, 10:08
Thanks to both of you guys,
I already noticed the two caller-id plug-ins in the plugins page.

Since I don't want to pay for the caller-id service from my phone company, what i'm interesting in is a fade-out-on-call / fade-in-on-hangup feature.

Could I ask the modem if the line is occupied ?
I'll dig some info about that...

Also, it lit up a new idea in my mind : Answering machine on the PC with via a modem and get messages on the squeezebox with delete and archive features. That would be really great... (I'll start a new thread for that)

jimdibb
2006-06-06, 11:31
That would be really cool... Don't have much use for it though as the phone
company has my voice mail.

On 6/6/06, Lowrent <Lowrent.28zq2n1149613801 (AT) no-mx (DOT) forums.slimdevices.com>
wrote:
>
>
>
> Also, it lit up a new idea in my mind : Answering machine on the PC
> with via a modem and get messages on the squeezebox with delete and
> archive features. That would be really great...
>
>
>

grimholtz
2006-06-06, 11:41
I've already done this in software. Even better, it uses any JSAPI-compliant text-to-speech (TTS) engine (e.g., AT&T Natural Voice, IBM Via Voice, Dragon Naturally Speaking, etc). to read the CID info through Squeezebox. See this thread (http://forums.slimdevices.com/showthread.php?t=24363). It requires:


CID modem
Java 1.4 or above (code is written in java)
Any JSAPI-compliant TTS engine--there are some free ones available
YAC (http://sunflowerhead.com/software/yac/)


That last requirement breaks platform independence (i.e., Windows required) because I've not been able to get JTAPI to read CID data.

The software pauses playback, announces the CID and displays it on the display, then resumes playback where it left off. Unfortunately, it doesn't work with SBs connected to the squeezenetwork--still waiting for a squeeznetwork API for that. It also allows you to specify which players to use.

If anyone wants the software, let me know. I'd be glad to post it on the web somewhere, but haven't been able to find free hosting. It's GPL.

-eric

twynne
2006-06-06, 11:51
This is already possible with xAP and either a CID modem or the
NetCallerID telephone device. In the UK a Meteor/Pegasus or a Pace CID
modem is supported the former provides outgoing call support too Using
the free xAPSwitchboard you can also have lookup and display on the Slim
music player of the Callers Name and STD locality (UK), this can be
synchronised with your Outlook address books . Also a full web
accessible call log is maintained, you can even click on a contact and
see the callers location in Google Maps.

It takes a few components all working together to get this going but if
people are interested I'll write up a short 'how to', it's fairly easy
once you know how.

> [/color]

I'd be interested in a xAP solution if someone could put together a step-by-step installation guide (for Windows preferably). I had a look at it at one point but it all looked quite complicated.

I've currently got Caller ID displaying on my SB3's using the Yac2slim solution, and it can (optionally) pause the music. It doesn't restart it though, you need the remote for that. :-)

I've also got an application called TapiRex (http://www.cbuenger.com) which distributes caller ID to other PC's and Media Center. Apparently there's a SDK for TapiRex but I wouldn't know where to begin. It would be nice to just use one solution as a 'server' and have the caller ID sent to media center, other PC's, a macbook pro, and the SB3's. Is this possible with xAP?

grimholtz
2006-06-06, 11:59
to begin. It would be nice to just use one solution as a 'server' and have the caller ID sent to media center, other PC's, a macbook pro, and the SB3's. Is this possible with xAP?This is precisely what YAC (http://sunflowerhead.com/software/yac/) does. Why would you be interested in this solution if it can't read callers' names, just phone numbers? Do you have all your friends' numbers memorized? The solution I have announces caller names via text-to-speech.

twynne
2006-06-06, 12:05
This is precisely what YAC (http://sunflowerhead.com/software/yac/) does. Why would you be interested in this solution if it can't read callers' names, just phone numbers? Do you have all your friends' numbers memorized? The solution I have announces caller names via text-to-speech.

Assuming you're referring to Tapirex, it does have lookup functionality (Outlook or it's own database), but doesn't have a plugin to speak to Squeezeboxes (yet). I use Tapirex to distribute caller ID to Windows PC's including Media Center.

To get caller ID on the Squeezebox I also have Yac and Yac2slim installed.

The point I was trying to make was that I would prefer to have just one application which distributes to all of the above. I'm not too bothered about it announcing the name, so that would be an added bonus. I also like the idea of having access to my call history via a browser when I'm not at home (as per the linked screenshots above).

Does the xAP solution accomplish all of this?

twynne
2006-06-06, 12:07
Just realised you were comparing your custom solution to the xAP solution. The added advantage of xAP is that it's extensible. I'm sure I've read that it can communicate with a number of devices/frameworks, though I've not really researched it in detail.

CouchPotatoe
2006-06-06, 16:11
> The point I was trying to make was that I would prefer to have just one
> application which distributes to all of the above. I'm not too bothered
> about it announcing the name, so that would be an added bonus. I also
> like the idea of having access to my call history via a browser when
> I'm not at home (as per the linked screenshots above).
>
> Does the xAP solution accomplish all of this?
>
xAP's whole philosophy is to distribute functionality. You can install
any xAP application anywhere on your intranet (any PC) and its'
functionality is available to the whole network. A peripheral sharer if
you like. It is effectively a broadcast (UDP) implementation where
interested parties choose to listen to information they have an interest
in. It can be 'targeted' at specific nodes instructing them to do
something eg 'display this' or a node can choose to 'display Caller ID '
messages. It is not possible to have private conversations in xAP. So
to answer your question .. yes, one xAP Caller ID application provides
full telephony call progress information including CID to all PC's on
your network. xAP offers (free) popup display applications for Windows
(including Windows MCE2005) and hardware display devices like Tivo /
SB's as well as Windows MCE. It can interface also to any YAC capable
display device. Currently although xAP has TTS it does not implement it
as an interruption and announcement over the Slim player audio. It does
support suspend and resume of playing audio during a telephone call
though - alongside display of the incoming call and callers name etc

A bit of background.. xAP creates truly distributed nodes on your
network, eg one provides an incoming 'Caller ID' service and another a
'Text to Speech' and another a 'Caller ID name /history lookup' and
several others might provide a 'display' service. These can be linked
either directly or through a (free) script engine like xAP Desktop or
xAP. This distributed and segmented approach is cause for one of the
difficulties some people find in getting it all working together- you
need all the components up and running. Several commercial home
automation applications support xAP either directly or via a plugin eg
HomeSeer, MisterHouse, Girder, XLobby etc For SlimServer there is a xAP
connection providing display functionality (including full handling of
queued messages with timed durations to multiple separate named display
devices each with priority overides and suspend / resume) - there is
also an IR receive functionality and a full audio player interface
providing a real time eventing, status and control interface to xAP -
and hence onward to HomeSeer etc. The xAP connector utilises
SlimServers' CLI interface.

With a bit of familiarisation you can use xAP to fully integrate Slim
players within control environments enriching the HA integration. The
Slim players are a really versatile piece of kit - and well established
as the player of choice in the HA community here. Oh - and xAP is free :-)

Kevin

>
>

CouchPotatoe
2006-06-06, 16:37
twynne wrote:
>
>
> The point I was trying to make was that I would prefer to have just one
> application which distributes to all of the above. I'm not too bothered
> about it announcing the name, so that would be an added bonus. I also
> like the idea of having access to my call history via a browser when
> I'm not at home (as per the linked screenshots above).
>
> Does the xAP solution accomplish all of this?
>
Should mention - xAP still utilises several applications to achieve this
as it divides functionality into individual apps... so you may not gain
form your current solution

- here's an MCE CID shot though
http://www.mi4.biz/modules.php?name=News&file=article&sid=112
and a xAP Desktop one that show a Desktop widget for a SliMP3 player too
- floating over you windows desktop with real time display and control.
of the player
http://www.mi4.biz/modules.php?name=News&file=article&sid=45
and a xAP Tivo one..
http://www.netcompsys.co.uk/xaptivo/examplemessagesonthetv.html

I'll try and grab a SB display of an incoming call too...

K
>
>

grimholtz
2006-06-06, 17:15
Impressive. I'd be willing to port my TTS CID solution (in Java) to work with xAP if I thought there was any demand. Anyone interested?

twynne
2006-06-06, 23:10
xAP sounds like it's worth investigating. If someone could post a basic 'how-to' to help get started I'd be very appreciative.

Thanks all,

Tom

gorstk
2006-06-07, 02:04
grimholtz wrote:
> I've already done this in software. Even better, it uses any
> JSAPI-compliant text-to-speech (TTS) engine (e.g., AT&T Natural Voice,
> IBM Via Voice, Dragon Naturally Speaking, etc). to read the CID info
> through Squeezebox. See 'this thread'
> (http://forums.slimdevices.com/showthread.php?t=24363). It requires:
>
>
> - CID modem
> - Java 1.4 or above (code is written in java)
> - Any JSAPI-compliant TTS engine--there are some free ones available
> [*}'YAC' (http://sunflowerhead.com/software/yac/)
>
>
> That last requirement breaks platform independence (i.e., Windows
> required) because I've not been able to get JTAPI to read CID data.
>
> The software pauses playback, announces the CID and displays it on the
> display, then resumes playback where it left off. Unfortunately, it
> doesn't work with SBs connected to the squeezenetwork--still waiting
> for a squeeznetwork API for that. It also allows you to specify which
> players to use.
>
> If anyone wants the software, let me know. I'd be glad to post it on
> the web somewhere, but haven't been able to find free hosting. It's
> GPL.
>
> -eric

I would be keen!
Does your ISP not have some webspacce (I dont think it willbe high
volume, atleast initially!)

CouchPotatoe
2006-06-07, 03:33
twynne wrote:
> xAP sounds like it's worth investigating. If someone could post a basic
> 'how-to' to help get started I'd be very appreciative.
>
> Thanks all,
>
> Tom
>
>
>
I'll do this, I have a couple of commitments that might mean it takes a
week or so but bear with me. I'll pop it on the xAP website and post a
link here to avoid traffic on the Slim list . I know that people find
it a little confusing to set it up to start with so it's well worth
waiting for the 'how to'.

Should also mention that xAP Switchboard provides an RSS feed of
telephone call history, divided into incoming and outgoing calls so you
can scroll through that too on your Slim player :-)

Kevin

twynne
2006-06-07, 10:54
Excellent - will wait to hear from you.

Thanks again,

Tom