Skip to content

Commit

Permalink
Added alpha4 changes. (#47387)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-pivamshi authored Dec 3, 2024
1 parent b6e60d7 commit 8bb17de
Show file tree
Hide file tree
Showing 19 changed files with 508 additions and 79 deletions.
8 changes: 7 additions & 1 deletion eng/scripts/Export-API.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ $servicesProj = Resolve-Path "$PSScriptRoot/../service.proj"

$debugLogging = $env:SYSTEM_DEBUG -eq "true"
$logsFolder = $env:BUILD_ARTIFACTSTAGINGDIRECTORY
$diagnosticArguments = ($debugLogging -and $logsFolder) ? "/binarylogger:$logsFolder/exportapi.binlog" : ""
$diagnosticArguments = ""
if ($debugLogging -and $logsFolder) {
$diagnosticArguments = "/binarylog"
} else {
$diagnosticArguments = ""
}


dotnet build /t:ExportApi /p:RunApiCompat=false /p:InheritDocEnabled=false /p:GeneratePackageOnBuild=false /p:Configuration=Release /p:IncludeSamples=false /p:IncludePerf=false /p:IncludeStress=false /p:IncludeTests=false /p:Scope="$ServiceDirectory" /p:SDKType=$SDKType /restore $servicesProj $diagnosticArguments

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ public virtual Response StartTranscription(StartTranscriptionOptions options = d
{
var request = options == default
? new StartTranscriptionRequestInternal()
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext };
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext, OperationCallbackUri=options.OperationCallbackUri, SpeechRecognitionModelEndpointId=options.SpeechRecognitionModelEndpointId };

return CallMediaRestClient.StartTranscription(CallConnectionId, request, cancellationToken);
}
Expand All @@ -1295,7 +1295,7 @@ public virtual async Task<Response> StartTranscriptionAsync(StartTranscriptionOp
{
var request = options == default
? new StartTranscriptionRequestInternal()
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext };
: new StartTranscriptionRequestInternal() { Locale = options.Locale, OperationContext = options.OperationContext, OperationCallbackUri = options.OperationCallbackUri, SpeechRecognitionModelEndpointId = options.SpeechRecognitionModelEndpointId };

return await CallMediaRestClient.StartTranscriptionAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -1320,7 +1320,7 @@ public virtual Response StopTranscription(StopTranscriptionOptions options = def
{
var request = options == default
? new StopTranscriptionRequestInternal()
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext };
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext, OperationCallbackUri = options.OperationCallbackUri };

return CallMediaRestClient.StopTranscription(CallConnectionId, request, cancellationToken);
}
Expand All @@ -1345,7 +1345,7 @@ public virtual async Task<Response> StopTranscriptionAsync(StopTranscriptionOpti
{
var request = options == default
? new StopTranscriptionRequestInternal()
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext };
: new StopTranscriptionRequestInternal() { OperationContext = options.OperationContext, OperationCallbackUri = options.OperationCallbackUri };

return await CallMediaRestClient.StopTranscriptionAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -1390,11 +1390,7 @@ public virtual Response UpdateTranscription(UpdateTranscriptionOptions options =
scope.Start();
try
{
UpdateTranscriptionRequestInternal request = new(options.Locale)
{
// OperationContext = options.OperationContext,
// SpeechRecognitionModelEndpointId = options.SpeechRecognitionModelEndpointId
};
UpdateTranscriptionRequestInternal request = new(options.Locale, options.SpeechRecognitionModelEndpointId, options.OperationContext, options.OperationCallbackUri);

return CallMediaRestClient.UpdateTranscription(CallConnectionId, request, cancellationToken);
}
Expand Down Expand Up @@ -1439,11 +1435,7 @@ public virtual async Task<Response> UpdateTranscriptionAsync(UpdateTranscription
scope.Start();
try
{
UpdateTranscriptionRequestInternal request = new(options.Locale)
{
// OperationContext = options.OperationContext,
// SpeechRecognitionModelEndpointId = options.SpeechRecognitionModelEndpointId
};
UpdateTranscriptionRequestInternal request = new(options.Locale, options.SpeechRecognitionModelEndpointId, options.OperationContext, options.OperationCallbackUri);

return await CallMediaRestClient.UpdateTranscriptionAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -1518,7 +1510,7 @@ public virtual Response StopMediaStreaming(StopMediaStreamingOptions options = d
{
var request = options == default
? new StopMediaStreamingRequestInternal()
: new StopMediaStreamingRequestInternal() { OperationCallbackUri = options.OperationCallbackUri?.AbsoluteUri }; // OperationContext = options.OperationContext
: new StopMediaStreamingRequestInternal() { OperationCallbackUri = options.OperationCallbackUri?.AbsoluteUri, OperationContext = options.OperationContext };

return CallMediaRestClient.StopMediaStreaming(CallConnectionId, request, cancellationToken);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8bb17de

Please sign in to comment.