1 BlueZ D-Bus Audio API description
2 *********************************
4 Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
5 Copyright (C) 2005-2007 Johan Hedberg <johan.hedberg@nokia.com>
6 Copyright (C) 2005-2006 Brad Midgley <bmidgley@xmission.com>
12 Interface org.bluez.Audio
13 Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
15 This is a generic audio interface that abstracts the different audio profiles.
17 Methods void Connect()
19 Connect all supported audio profiles on the device.
23 Disconnect all audio profiles on the device
27 Returns all properties for the interface. See the
28 properties section for available properties.
30 Signals void PropertyChanged(string name, variant value)
32 This signal indicates a changed value of the given
35 Properties string State
37 Possible values: "disconnected", "connecting",
40 "disconnected" -> "connecting"
41 Either an incoming or outgoing connection
44 "connecting" -> "disconnected"
45 Connection attempt failed
47 "connecting" -> "connected"
48 Successfully connected
50 "connected" -> "disconnected"
51 Disconnected from the remote device
57 Interface org.bluez.Headset
58 Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
60 Methods void Connect()
62 Connect to the HSP/HFP service on the remote device.
66 Disconnect from the HSP/HFP service on the remote
69 boolean IsConnected() {deprecated}
71 Returns TRUE if there is a active connection to the
72 HSP/HFP connection on the remote device.
76 Indicate an incoming call on the headset
77 connected to the stream. Will continue to
78 ring the headset about every 3 seconds.
82 Cancel the incoming call indication.
84 void Play() {deprecated}
86 Open the audio connection to the headset.
90 Close the audio connection.
92 boolean IsPlaying() {deprecated}
94 Returns true if an audio connection to the headset
97 uint16 GetSpeakerGain() {deprecated}
99 Returns the current speaker gain if available,
100 otherwise returns the error NotAvailable.
102 uint16 GetMicrophoneGain() {deprecated}
104 Returns the current microphone gain if available,
105 otherwise returns the error NotAvailable.
107 void SetSpeakerGain(uint16 gain) {deprecated}
109 Changes the current speaker gain if possible.
111 void SetMicrophoneGain(uint16 gain) {deprecated}
113 Changes the current speaker gain if possible.
117 Returns all properties for the interface. See the
118 properties section for available properties.
120 Possible Errors: org.bluez.Error.InvalidArguments
122 void SetProperty(string name, variant value)
124 Changes the value of the specified property. Only
125 properties that are listed a read-write are changeable.
126 On success this will emit a PropertyChanged signal.
128 Possible Errors: org.bluez.Error.DoesNotExist
129 org.bluez.Error.InvalidArguments
131 void SetVoiceDial(boolean)
133 Sends enable/disable Voice Recognition to headset.
136 Signals void AnswerRequested()
138 Sent when the answer button is pressed on the headset
140 void Connected() {deprecated}
142 Sent when the device has been connected to.
144 void Disconnected() {deprecated}
146 Sent when the device has been disconnected from.
148 void Stopped() {deprecated}
150 Sent when the audio connection is closed
152 void Playing() {deprecated}
154 Sent when the audio connection is opened
156 void SpeakerGainChanged(uint16 gain) {deprecated}
158 The speaker gain changed.
160 void MicrophoneGainChanged(uint16 gain) {deprecated}
162 The microphone gain changed.
164 PropertyChanged(string name, variant value)
166 This signal indicates a changed value of the given
169 properties string State [readonly]
171 Possible values: "disconnected", "connecting",
172 "connected", "playing"
174 "disconnected" -> "connecting"
175 Either an incoming or outgoing connection
178 "connecting" -> "disconnected"
179 Connection attempt failed
181 "connecting" -> "connected"
182 Successfully connected
184 "connected" -> "playing"
185 SCO audio connection successfully opened
187 "playing" -> "connected"
188 SCO audio connection closed
190 "connected" -> "disconnected"
191 "playing" -> "disconnected"
192 Disconnected from the remote device
194 boolean Connected [readonly]
196 Indicates if there is a active connection to the
197 HSP/HFP connection on the remote device.
199 boolean Playing [readonly]
201 Indicates if an audio connection to the headset
204 uint16 SpeakerGain [readwrite]
206 The speaker gain when available.
208 uint16 MicrophoneGain [readwrite]
210 The speaker gain when available.
217 Interface org.bluez.AudioSink
218 Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
220 Methods void Connect()
222 Connect and setup a stream to a A2DP sink on the
227 Disconnect from the remote device.
229 boolean IsConnected() {deprecated}
231 Returns TRUE if a stream is setup to a A2DP sink on
236 Returns all properties for the interface. See the
237 properties section for available properties.
239 Possible Errors: org.bluez.Error.InvalidArguments
241 Signals void Connected() {deprecated}
243 Sent when a successful connection has been made to the
246 void Disconnected() {deprecated}
248 Sent when the device has been disconnected from.
250 void Playing() {deprecated}
252 Sent when a stream with remote device is started.
254 void Stopped() {deprecated}
256 Sent when a stream with remote device is suspended.
258 PropertyChanged(string name, variant value)
260 This signal indicates a changed value of the given
263 properties string State [readonly]
265 Possible values: "disconnected", "connecting",
266 "connected", "playing"
268 "disconnected" -> "connecting"
269 Either an incoming or outgoing connection
272 "connecting" -> "disconnected"
273 Connection attempt failed
275 "connecting" -> "connected"
276 Successfully connected
278 "connected" -> "playing"
281 "playing" -> "connected"
282 Audio stream suspended
284 "connected" -> "disconnected"
285 "playing" -> "disconnected"
286 Disconnected from the remote device
288 boolean Connected [readonly]
290 Indicates if a stream is setup to a A2DP sink on
293 boolean Playing [readonly]
295 Indicates if a stream is active to a A2DP sink on
298 AudioSource hierarchy
299 =====================
302 Interface org.bluez.AudioSource
303 Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
305 Methods void Connect()
307 Connect and setup a stream to a A2DP source on the
312 Disconnect from the remote device.
316 Returns all properties for the interface. See the
317 properties section for available properties.
319 Possible Errors: org.bluez.Error.InvalidArguments
321 Signals PropertyChanged(string name, variant value)
323 This signal indicates a changed value of the given
326 properties string State [readonly]
328 Possible values: "disconnected", "connecting",
329 "connected", "playing"
331 "disconnected" -> "connecting"
332 Either an incoming or outgoing connection
335 "connecting" -> "disconnected"
336 Connection attempt failed
338 "connecting" -> "connected"
339 Successfully connected
341 "connected" -> "playing"
344 "playing" -> "connected"
345 Audio stream suspended
347 "connected" -> "disconnected"
348 "playing" -> "disconnected"
349 Disconnected from the remote device
352 HeadsetGateway hierarchy
353 ========================
356 Interface org.bluez.HeadsetGateway
357 Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
359 This interface is available for remote devices which can function in the Audio
360 Gateway role of the HFP profiles.
362 Methods void Connect()
364 Connect to the AG service on the remote device.
368 Disconnect from the AG service on the remote device
372 It has to called only after Ring signal received.
376 Terminate call which is running or reject an incoming
377 call. This has nothing with any 3-way situation incl.
378 RaH. Just plain old PDH.
380 void Call(string number)
382 Dial a number 'number'. No number processing is done
383 thus if AG would reject to dial it don't blame me :)
385 string GetOperatorName()
387 Find out the name of the currently selected network
390 void SendDTMF(string digits)
392 Will send each digit in the 'digits' sequentially. Would
393 send nothing if there is non-dtmf digit.
395 string GetSubscriberNumber()
397 Get the voicecall subscriber number of AG
401 Returns all properties for the interface. See the
402 properties section for available properties.
404 Signals void Ring(string number)
406 Someone's calling from 'number'.
407 Caller number is provided as received from AG.
409 void CallTerminated()
411 Call failed to set up. It means that we tried to call
412 someone or someone tried to call us but call was not
417 Call set up successfully.
421 Call was started and now ended. In contrast with
422 CallTerminated where call didn't started
424 PropertyChanged(string name, variant value)
426 This signal indicates a changed value of the given
429 properties boolean Connected [readonly]
431 Indicates if there is an active connection to the
432 AG service on the remote device.
434 uint16 RegistrationStatus [readonly]
436 Service availability indicator of AG, where:
437 0 implies no service. No Home/Roam network available.
438 1 implies presence of service. Home/Roam network
441 uint16 SignalStrength [readonly]
443 Signal strength indicator of AG, the value ranges from
446 uint16 RoamingStatus [readonly]
448 Roaming status indicator of AG, where:
449 0 means roaming is not active
450 1 means a roaming is active
452 uint16 BatteryCharge [readonly]
454 Battery Charge indicator of AG, the value ranges from
457 uint16 SpeakerGain [readonly]
459 The speaker gain when available.
461 uint16 MicrophoneGain [readonly]
463 The speaker gain when available.