Skip to content

Commit

Permalink
Merge pull request #894 from pipecat-ai/aleix/daily-python-0.14.0
Browse files Browse the repository at this point in the history
transports(daily): update to daily-python 0.14.0
  • Loading branch information
aconchillo authored Dec 20, 2024
2 parents 15047f5 + 8b496f8 commit 6f7c4dd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added `DailyTransport.send_dtmf()` to send dial-out DTMF tones.

- Added `DailyTransport.sip_call_transfer()` to forward SIP and PSTN calls to
another address or number. For example, transfer a SIP call to a different
SIP address or transfer a PSTN phone number to a different PSTN phone number.

- Added `DailyTransport.sip_refer()` to transfer incoming SIP/PSTN calls from
outside Daily to another SIP/PSTN address.

- Added `KoalaFilter` which implement on device noise reduction using Koala
Noise Suppression.
(see https://picovoice.ai/platform/koala/)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ azure = [ "azure-cognitiveservices-speech~=1.41.1", "openai~=1.57.2" ]
canonical = [ "aiofiles~=24.1.0" ]
cartesia = [ "cartesia~=1.0.13", "websockets~=13.1" ]
cerebras = [ "openai~=1.57.2" ]
daily = [ "daily-python~=0.13.0" ]
daily = [ "daily-python~=0.14.0" ]
deepgram = [ "deepgram-sdk~=3.7.7" ]
elevenlabs = [ "websockets~=13.1" ]
fal = [ "fal-client~=0.4.1" ]
Expand Down
24 changes: 24 additions & 0 deletions src/pipecat/transports/services/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,21 @@ async def stop_dialout(self, participant_id):
self._client.stop_dialout(participant_id, completion=completion_callback(future))
await future

async def send_dtmf(self, settings):
future = self._loop.create_future()
self._client.send_dtmf(settings, completion=completion_callback(future))
await future

async def sip_call_transfer(self, settings):
future = self._loop.create_future()
self._client.sip_call_transfer(settings, completion=completion_callback(future))
await future

async def sip_refer(self, settings):
future = self._loop.create_future()
self._client.sip_refer(settings, completion=completion_callback(future))
await future

async def start_recording(self, streaming_settings, stream_id, force_new):
future = self._loop.create_future()
self._client.start_recording(
Expand Down Expand Up @@ -955,6 +970,15 @@ async def start_dialout(self, settings=None):
async def stop_dialout(self, participant_id):
await self._client.stop_dialout(participant_id)

async def send_dtmf(self, settings):
await self._client.send_dtmf(settings)

async def sip_call_transfer(self, settings):
await self._client.sip_call_transfer(settings)

async def sip_refer(self, settings):
await self._client.sip_refer(settings)

async def start_recording(self, streaming_settings=None, stream_id=None, force_new=None):
await self._client.start_recording(streaming_settings, stream_id, force_new)

Expand Down

0 comments on commit 6f7c4dd

Please sign in to comment.