Hardware Reference
In-Depth Information
7.
That's all you need to start calling your fellow agents from the Pi itself.
Type help to get a list of all commands that Linphone accepts.
The basic commands are call [user id] to call someone, answer to pick
up incoming calls and quit to exit Linphone. All the settings that you've
made will be saved to ~/.linphonerc and loaded the next time you start
linphonec .
Playing files with Linphone
Now that you know the Linphone basics, let's explore some interesting features not
offered by most other softphones.
1. At any time (except during a call), you can switch Linphone into file mode,
which lets us experiment with alternative audio sources. Use this command
to enable file mode:
linphonec> soundcard use files
2. Do you remember eSpeak from earlier in this chapter? While you rest your
throat, eSpeak can provide its soothing voice to carry out entire conversations
with your agents. If you haven't already got it, install eSpeak first:
pi@raspberrypi ~ $ sudo apt-get install espeak
Now we tell Linphone what to say next:
linphonec> speak english Greetings! I'm a Linphone, obviously.
This sentence will be spoken as soon as there's an established call. So you
can either make an outgoing call or answer an incoming call to start the
conversation, after which you're free to continue the conversation in Italian:
linphonec> speak italian Buongiorno! Mi chiamo Enzo Gorlami.
3.
Should you want a message to play automatically when someone calls,
just toggle auto answer :
linphonec> autoanswer enable
4. How about playing a pre-recorded message or some nice grooves? If you
have a WAV or MP3 file that you'd like to play over the phone, it has to be
converted to a suitable format first. A simple SoX command will do the trick:
pi@raspberrypi ~ $ sox "original file.mp3" -c 1 -r 48000 playme.
wav
Now we can tell Linphone to play the file:
linphonec> play playme.wav
 
Search WWH ::




Custom Search