Skip to content

Commit 13e20f1

Browse files
v-durgeshsVinothini Dharmaraj
andauthored
Alpha4 python changes (Azure#38419)
* Generated alpha4 swagger Updated code. * Added unit test, live test code, Update connect call. * Updated chang log. * Updated test code. * updating test records * updating latest apispec * Updated latest swagger. * Resolved PR comment. * updating the test records * updating the test records * recording tests * fixing the test failure * fixing the build analyze issue * disabling verifytypes * adding the released versions --------- Co-authored-by: Vinothini Dharmaraj <[email protected]>
1 parent b517f98 commit 13e20f1

File tree

52 files changed

+5634
-2588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5634
-2588
lines changed

sdk/communication/azure-communication-callautomation/CHANGELOG.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.3.0b1 (Unreleased)
3+
## 1.4.0b2 (Unreleased)
44

55
### Features Added
66

@@ -10,6 +10,54 @@
1010

1111
### Other Changes
1212

13+
## 1.4.0b1 (2024-11-22)
14+
15+
### Features Added
16+
17+
- Added support for ConnectAPI to enable streaming and real-time transcription
18+
- Enhanced media streaming with bidirectional capabilities, enabling support for audio formats in both directions. Currently, it supports sample rates of 24kHz and 16kHz
19+
20+
### Other Changes
21+
22+
- Introduced audio streaming and transcription data parsing capabilities.
23+
24+
## 1.3.0 (2024-11-22)
25+
26+
### Features Added
27+
28+
- Support multiple play sources for Play and Recognize
29+
- Support for PlayStarted event in Play/Recognize
30+
- Hold and Unhold the participant
31+
- CallDisconnected now includes more information on why the call has ended
32+
- Support to manage the rooms/servercall/group call using connect API
33+
- Expose original PSTN number target from incoming call event in call connection properties
34+
- Support for VoIP to PSTN transfer scenario
35+
36+
### Other Changes
37+
38+
- Added CreateCallFailed event to signify when create call API fails to establish a call
39+
- Added AnswerFailed event to signify when answer call API fails to answer a call
40+
41+
## 1.3.0b2 (2024-10-28)
42+
43+
### Features Added
44+
45+
- Added CreateCallFailed event to signify when create call API fails to establish a call
46+
47+
## 1.3.0b1 (2024-08-02)
48+
49+
### Features Added
50+
51+
- Support multiple play sources for Play and Recognize
52+
- Support for PlayStarted event in Play/Recognize
53+
- Support for the real time transcription
54+
- Monetization for real-time transcription and audio streaming
55+
- Hold and Unhold the participant
56+
- Support to manage the rooms/servercall/group call using connect API
57+
- Support for the audio streaming
58+
- Expose original PSTN number target from incoming call event in call connection properties
59+
- Support for VoIP to PSTN transfer scenario
60+
1361
## 1.2.0 (2024-04-15)
1462

1563
### Features Added

sdk/communication/azure-communication-callautomation/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/communication/azure-communication-callautomation",
5-
"Tag": "python/communication/azure-communication-callautomation_ab7206cdd8"
5+
"Tag": "python/communication/azure-communication-callautomation_f861ccd219"
66
}

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from ._version import VERSION
99
from ._call_automation_client import CallAutomationClient
1010
from ._call_connection_client import CallConnectionClient
11-
from .streaming.streaming_data_parser import StreamingDataParser
1211
from ._models import (
1312
CallConnectionProperties,
1413
FileSource,
@@ -20,12 +19,14 @@
2019
AddParticipantResult,
2120
RemoveParticipantResult,
2221
TransferCallResult,
23-
MediaStreamingConfiguration,
24-
TranscriptionConfiguration,
22+
MediaStreamingOptions,
23+
TranscriptionOptions,
2524
ChannelAffinity,
2625
MuteParticipantResult,
2726
SendDtmfTonesResult,
2827
CancelAddParticipantOperationResult,
28+
AzureBlobContainerRecordingStorage,
29+
AzureCommunicationsRecordingStorage,
2930
)
3031
from ._shared.models import (
3132
CommunicationIdentifier,
@@ -52,23 +53,25 @@
5253
CallConnectionState,
5354
RecordingState,
5455
VoiceKind,
56+
AudioFormat
5557
)
56-
from .streaming.models import TranscriptionMetadata, TranscriptionData
5758

5859
__all__ = [
5960
# clients
6061
"CallAutomationClient",
6162
"CallConnectionClient",
62-
# parser
63-
"StreamingDataParser",
63+
6464
# models for input
6565
"FileSource",
6666
"TextSource",
6767
"SsmlSource",
6868
"RecognitionChoice",
6969
"ChannelAffinity",
70-
"MediaStreamingConfiguration",
71-
"TranscriptionConfiguration",
70+
"MediaStreamingOptions",
71+
"TranscriptionOptions",
72+
"AzureBlobContainerRecordingStorage",
73+
"AzureCommunicationsRecordingStorage",
74+
7275
# models for output
7376
"CallConnectionProperties",
7477
"CallParticipant",
@@ -88,9 +91,7 @@
8891
"CommunicationIdentifierKind",
8992
"CommunicationCloudEnvironment",
9093
"UnknownIdentifier",
91-
# streaming models
92-
"TranscriptionMetadata",
93-
"TranscriptionData",
94+
9495
# enums
9596
"CallRejectReason",
9697
"RecordingContent",
@@ -106,6 +107,7 @@
106107
"CallConnectionState",
107108
"RecordingState",
108109
"VoiceKind",
110+
"AudioFormat"
109111
]
110112
__version__ = VERSION
111113

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1313
V2023_10_15 = "2023-10-15"
1414
V2023_10_03_PREVIEW = "2023-10-03-preview"
1515
V2024_04_15 = "2024-04-15"
16+
V2024_06_15_PREVIEW = "2024-06-15-preview"
17+
V2024_09_15 = "2024-09-15"
18+
V2024_11_15_PREVIEW = "2024-11-15-preview"
19+
V2024_09_01_PREVIEW = "2024-09-01-preview"
1620

17-
18-
DEFAULT_VERSION = ApiVersion.V2023_10_03_PREVIEW.value
21+
DEFAULT_VERSION = ApiVersion.V2024_09_01_PREVIEW.value

0 commit comments

Comments
 (0)