Skip to content

Commit e374355

Browse files
v-dharmarajvv-pivamshiv-saasomaniazure-sdk
authored
CallAutomation GA5 Changes (#45494)
* ga5 changes * ga5 api changes * Made GA5 changes and recorded the live tests. (#45409) * Addressing arb comments * Added the parser for the dtmf data. (#45347) * Added the parser for the dtmf data. * Removed dtmf meta data. --------- Co-authored-by: Vinothini Dharmaraj <[email protected]> * updating the white space difference * addressing the arb comments * GA5 Javadoc Issues (#45432) * Fixed Javadoc issues in StreamingData.java & TranscriptionOptions.java * Renamed MediaStreamingContent class to MediaStreamingContentType. Renamed getChannels() to getChannelType() in AudioMetaData.java * Re-recorded tests and fixed linting issues (unused imports). (#45448) * updating java missing fields * lint errors * moving transport url * Addressing the ARB Comments * addressing the arb comments * addressing all arb comments * updating the transcription and media streaming options * Fixed Javadoc issues + updated ga5 version. (#45496) * Fixing the lint errors * fixing the lint error * updating the changelog * Updating the changelog and release date * changing the release date * Increment package versions for communication/azure-communication-callautomation releases (#45603) * taking the main changes for the dependancy package updates * dependancy package updates * updating the identity package * updating the cutomization for the getparticipant * version number update * running latest autorest * version update * updating readme version --------- Co-authored-by: v-pivamshi <[email protected]> Co-authored-by: v-saasomani <[email protected]> Co-authored-by: Azure SDK Bot <[email protected]>
1 parent 7a6ab1c commit e374355

File tree

224 files changed

+2023
-12640
lines changed

Some content is hidden

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

224 files changed

+2023
-12640
lines changed

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
### Features Added
66

7-
- Support for recording result api.
8-
97
### Breaking Changes
108

119
### Bugs Fixed
@@ -22,16 +20,16 @@
2220
- Upgraded `azure-core-http-netty` from `1.15.11` to version `1.15.12`.
2321
- Upgraded `azure-core` from `1.55.3` to version `1.55.4`.
2422

25-
2623
## 1.4.0 (2025-06-05)
2724

2825
### Features Added
2926

30-
### Breaking Changes
31-
32-
### Bugs Fixed
33-
34-
### Other Changes
27+
- Real-time transcription support
28+
- Audio and DTMF streaming capabilities
29+
- Integration of ConnectAPI for seamless streaming and transcription
30+
- Improved media streaming with bidirectional functionality, allowing audio formats in both directions, currently supporting sample rates of 24kHz and 16kHz
31+
- Support for custom speech models has been integrated into transcription
32+
- A confidence level for recognized speech has been introduced, ranging from 0.0 to 1.0 when available
3533

3634
## 1.3.3 (2025-03-24)
3735

@@ -54,6 +52,16 @@
5452
- Upgraded `azure-core-http-netty` from `1.15.7` to version `1.15.10`.
5553
- Upgraded `azure-core` from `1.54.1` to version `1.55.2`.
5654

55+
## 1.3.1 (2024-12-04)
56+
57+
### Other Changes
58+
59+
#### Dependency Updates
60+
61+
- Upgraded `azure-core` from `1.53.0` to version `1.54.1`.
62+
- Upgraded `azure-core-http-netty` from `1.15.5` to version `1.15.7`.
63+
- Upgraded `azure-communication-common` from `1.3.7` to version `1.3.8`.
64+
5765
## 1.4.0-beta.1 (2024-11-22)
5866

5967
### Features Added

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This package contains a Java SDK for Azure Communication Call Automation Service
2222
<dependency>
2323
<groupId>com.azure</groupId>
2424
<artifactId>azure-communication-callautomation</artifactId>
25-
<version>1.4.0-beta.2</version>
25+
<version>1.4.1</version>
2626
</dependency>
2727
```
2828

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": "java",
44
"TagPrefix": "java/communication/azure-communication-callautomation",
5-
"Tag": "java/communication/azure-communication-callautomation_d495ba2a2c"
5+
"Tag": "java/communication/azure-communication-callautomation_33108318f9"
66
}

sdk/communication/azure-communication-callautomation/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
<version>9.37.3</version> <!-- {x-version-update;com.nimbusds:nimbus-jose-jwt;external_dependency} -->
9696
<scope>test</scope>
9797
</dependency>
98+
<dependency>
99+
<groupId>org.hamcrest</groupId>
100+
<artifactId>hamcrest-all</artifactId>
101+
<version>1.3</version> <!-- {x-version-update;org.hamcrest:hamcrest-all;external_dependency} -->
102+
<scope>test</scope>
103+
</dependency>
98104
<dependency>
99105
<groupId>com.azure</groupId>
100106
<artifactId>azure-identity</artifactId>

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationAsyncClient.java

Lines changed: 24 additions & 88 deletions
Large diffs are not rendered by default.

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClient.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ public final class CallAutomationClient {
4242
this.callAutomationAsyncClient = callAutomationAsyncClient;
4343
}
4444

45-
/**
46-
* Get the event processor for handling events.
47-
* @return {@link CallAutomationEventProcessor} as event processor
48-
*/
49-
public CallAutomationEventProcessor getEventProcessor() {
50-
return callAutomationAsyncClient.getEventProcessor();
51-
}
52-
5345
/**
5446
* Get Source Identity that is used for create and answer call
5547
* @return {@link CommunicationUserIdentifier} represent source

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationClientBuilder.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,6 @@ public CallAutomationClientBuilder endpoint(String endpoint) {
101101
return this;
102102
}
103103

104-
/**
105-
* Set pma endpoint override of the service.
106-
*
107-
* @param pmaEndpoint url of the service.
108-
* @return CallAutomationClientBuilder object.
109-
*/
110-
public CallAutomationClientBuilder pmaEndpoint(String pmaEndpoint) {
111-
this.pmaEndpoint = Objects.requireNonNull(pmaEndpoint, "'pmaEndpoint' cannot be null.");
112-
return this;
113-
}
114-
115104
/**
116105
* Sets the {@link HttpPipeline} to use for the service client.
117106
*
@@ -319,7 +308,7 @@ public CallAutomationClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
319308
* and {@link #retryPolicy(RetryPolicy)} have been set.
320309
*/
321310
public CallAutomationAsyncClient buildAsyncClient() {
322-
return new CallAutomationAsyncClient(createServiceImpl(), sourceIdentity, new CallAutomationEventProcessor());
311+
return new CallAutomationAsyncClient(createServiceImpl(), sourceIdentity);
323312
}
324313

325314
/**

sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,14 @@
2323
import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionToneFailed;
2424
import com.azure.communication.callautomation.models.events.ContinuousDtmfRecognitionToneReceived;
2525
import com.azure.communication.callautomation.models.events.CreateCallFailed;
26-
import com.azure.communication.callautomation.models.events.DialogCompleted;
27-
import com.azure.communication.callautomation.models.events.DialogConsent;
28-
import com.azure.communication.callautomation.models.events.DialogFailed;
29-
import com.azure.communication.callautomation.models.events.DialogHangup;
30-
import com.azure.communication.callautomation.models.events.DialogLanguageChange;
31-
import com.azure.communication.callautomation.models.events.DialogSensitivityUpdate;
32-
import com.azure.communication.callautomation.models.events.DialogStarted;
33-
import com.azure.communication.callautomation.models.events.DialogTransfer;
34-
import com.azure.communication.callautomation.models.events.HoldAudioCompleted;
35-
import com.azure.communication.callautomation.models.events.HoldAudioPaused;
36-
import com.azure.communication.callautomation.models.events.HoldAudioResumed;
37-
import com.azure.communication.callautomation.models.events.HoldAudioStarted;
3826
import com.azure.communication.callautomation.models.events.HoldFailed;
39-
import com.azure.communication.callautomation.models.events.IncomingCall;
4027
import com.azure.communication.callautomation.models.events.MediaStreamingFailed;
4128
import com.azure.communication.callautomation.models.events.MediaStreamingStarted;
4229
import com.azure.communication.callautomation.models.events.MediaStreamingStopped;
4330
import com.azure.communication.callautomation.models.events.ParticipantsUpdated;
4431
import com.azure.communication.callautomation.models.events.PlayCanceled;
4532
import com.azure.communication.callautomation.models.events.PlayCompleted;
4633
import com.azure.communication.callautomation.models.events.PlayFailed;
47-
import com.azure.communication.callautomation.models.events.PlayPaused;
48-
import com.azure.communication.callautomation.models.events.PlayResumed;
4934
import com.azure.communication.callautomation.models.events.PlayStarted;
5035
import com.azure.communication.callautomation.models.events.RecognizeCanceled;
5136
import com.azure.communication.callautomation.models.events.RecognizeCompleted;
@@ -55,7 +40,6 @@
5540
import com.azure.communication.callautomation.models.events.RemoveParticipantSucceeded;
5641
import com.azure.communication.callautomation.models.events.SendDtmfTonesCompleted;
5742
import com.azure.communication.callautomation.models.events.SendDtmfTonesFailed;
58-
import com.azure.communication.callautomation.models.events.StartRecordingFailed;
5943
import com.azure.communication.callautomation.models.events.TranscriptionFailed;
6044
import com.azure.communication.callautomation.models.events.TranscriptionResumed;
6145
import com.azure.communication.callautomation.models.events.TranscriptionStarted;
@@ -123,8 +107,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String
123107
ret = CallConnected.fromJson(jsonReader);
124108
} else if (Objects.equals(eventType, "Microsoft.Communication.CallDisconnected")) {
125109
ret = CallDisconnected.fromJson(jsonReader);
126-
} else if (Objects.equals(eventType, "Microsoft.Communication.IncomingCall")) {
127-
ret = IncomingCall.fromJson(jsonReader);
128110
} else if (Objects.equals(eventType, "Microsoft.Communication.AddParticipantFailed")) {
129111
ret = AddParticipantFailed.fromJson(jsonReader);
130112
} else if (Objects.equals(eventType, "Microsoft.Communication.AddParticipantSucceeded")) {
@@ -137,8 +119,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String
137119
ret = ParticipantsUpdated.fromJson(jsonReader);
138120
} else if (Objects.equals(eventType, "Microsoft.Communication.RecordingStateChanged")) {
139121
ret = RecordingStateChanged.fromJson(jsonReader);
140-
} else if (Objects.equals(eventType, "Microsoft.Communication.StartRecordingFailed")) {
141-
ret = StartRecordingFailed.fromJson(jsonReader);
142122
} else if (Objects.equals(eventType, "Microsoft.Communication.PlayCompleted")) {
143123
ret = PlayCompleted.fromJson(jsonReader);
144124
} else if (Objects.equals(eventType, "Microsoft.Communication.PlayFailed")) {
@@ -147,10 +127,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String
147127
ret = PlayStarted.fromJson(jsonReader);
148128
} else if (Objects.equals(eventType, "Microsoft.Communication.PlayCanceled")) {
149129
ret = PlayCanceled.fromJson(jsonReader);
150-
} else if (Objects.equals(eventType, "Microsoft.Communication.PlayPaused")) {
151-
ret = PlayPaused.fromJson(jsonReader);
152-
} else if (Objects.equals(eventType, "Microsoft.Communication.PlayResumed")) {
153-
ret = PlayResumed.fromJson(jsonReader);
154130
} else if (Objects.equals(eventType, "Microsoft.Communication.RecognizeCompleted")) {
155131
ret = RecognizeCompleted.fromJson(jsonReader);
156132
} else if (Objects.equals(eventType, "Microsoft.Communication.RecognizeFailed")) {
@@ -175,22 +151,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String
175151
ret = CancelAddParticipantSucceeded.fromJson(jsonReader);
176152
} else if (Objects.equals(eventType, "Microsoft.Communication.CancelAddParticipantFailed")) {
177153
ret = CancelAddParticipantFailed.fromJson(jsonReader);
178-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogStarted")) {
179-
ret = DialogStarted.fromJson(jsonReader);
180-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogCompleted")) {
181-
ret = DialogCompleted.fromJson(jsonReader);
182-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogFailed")) {
183-
ret = DialogFailed.fromJson(jsonReader);
184-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogConsent")) {
185-
ret = DialogConsent.fromJson(jsonReader);
186-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogHangup")) {
187-
ret = DialogHangup.fromJson(jsonReader);
188-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogLanguageChange")) {
189-
ret = DialogLanguageChange.fromJson(jsonReader);
190-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogTransfer")) {
191-
ret = DialogTransfer.fromJson(jsonReader);
192-
} else if (Objects.equals(eventType, "Microsoft.Communication.DialogSensitivityUpdate")) {
193-
ret = DialogSensitivityUpdate.fromJson(jsonReader);
194154
} else if (Objects.equals(eventType, "Microsoft.Communication.TranscriptionStarted")) {
195155
ret = TranscriptionStarted.fromJson(jsonReader);
196156
} else if (Objects.equals(eventType, "Microsoft.Communication.TranscriptionFailed")) {
@@ -205,14 +165,6 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String
205165
ret = AnswerFailed.fromJson(jsonReader);
206166
} else if (Objects.equals(eventType, "Microsoft.Communication.CreateCallFailed")) {
207167
ret = CreateCallFailed.fromJson(jsonReader);
208-
} else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioCompleted")) {
209-
ret = HoldAudioCompleted.fromJson(jsonReader);
210-
} else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioStarted")) {
211-
ret = HoldAudioStarted.fromJson(jsonReader);
212-
} else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioPaused")) {
213-
ret = HoldAudioPaused.fromJson(jsonReader);
214-
} else if (Objects.equals(eventType, "Microsoft.Communication.HoldAudioResumed")) {
215-
ret = HoldAudioResumed.fromJson(jsonReader);
216168
} else if (Objects.equals(eventType, "Microsoft.Communication.HoldFailed")) {
217169
ret = HoldFailed.fromJson(jsonReader);
218170
} else if (Objects.equals(eventType, "Microsoft.Communication.ConnectFailed")) {

0 commit comments

Comments
 (0)