From 598d50d7db40d74ec95769a918eb2731e8b41e58 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 23 Jun 2026 15:05:22 +0000 Subject: [PATCH 1/2] Generate SDK with OpenAPI Generator Version --- .openapi-generator/FILES | 2 + Bandwidth.Standard.sln | 10 +- README.md | 1 + api/openapi.yaml | 73 ++++++++- bandwidth.yml | 70 +++++++++ docs/RecordingTranscriptionClip.md | 14 ++ docs/RecordingTranscriptions.md | 1 + docs/Transcription.md | 1 + src/Bandwidth.Standard/Model/RbmActionBase.cs | 2 +- .../Model/RbmSuggestionResponse.cs | 2 +- .../Model/RecordingTranscriptionClip.cs | 141 ++++++++++++++++++ .../Model/RecordingTranscriptions.cs | 12 +- src/Bandwidth.Standard/Model/Transcription.cs | 13 +- 13 files changed, 326 insertions(+), 16 deletions(-) create mode 100644 docs/RecordingTranscriptionClip.md create mode 100644 src/Bandwidth.Standard/Model/RecordingTranscriptionClip.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6043157a..2b798a2e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -163,6 +163,7 @@ docs/RbmWebViewEnum.md docs/RecordingAvailableCallback.md docs/RecordingCompleteCallback.md docs/RecordingStateEnum.md +docs/RecordingTranscriptionClip.md docs/RecordingTranscriptionMetadata.md docs/RecordingTranscriptions.md docs/RecordingsApi.md @@ -399,6 +400,7 @@ src/Bandwidth.Standard/Model/RbmWebViewEnum.cs src/Bandwidth.Standard/Model/RecordingAvailableCallback.cs src/Bandwidth.Standard/Model/RecordingCompleteCallback.cs src/Bandwidth.Standard/Model/RecordingStateEnum.cs +src/Bandwidth.Standard/Model/RecordingTranscriptionClip.cs src/Bandwidth.Standard/Model/RecordingTranscriptionMetadata.cs src/Bandwidth.Standard/Model/RecordingTranscriptions.cs src/Bandwidth.Standard/Model/RedirectCallback.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 49ff43c0..28da61d0 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{612BC740-F2E6-4466-87AE-403F47F2323F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{B644B02A-2DAC-42EA-A361-EB14EAD13209}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {612BC740-F2E6-4466-87AE-403F47F2323F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {612BC740-F2E6-4466-87AE-403F47F2323F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {612BC740-F2E6-4466-87AE-403F47F2323F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {612BC740-F2E6-4466-87AE-403F47F2323F}.Release|Any CPU.Build.0 = Release|Any CPU + {B644B02A-2DAC-42EA-A361-EB14EAD13209}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B644B02A-2DAC-42EA-A361-EB14EAD13209}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B644B02A-2DAC-42EA-A361-EB14EAD13209}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B644B02A-2DAC-42EA-A361-EB14EAD13209}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index 70cbdf89..63f5bbd9 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,7 @@ Class | Method | HTTP request | Description - [Model.RecordingAvailableCallback](docs/RecordingAvailableCallback.md) - [Model.RecordingCompleteCallback](docs/RecordingCompleteCallback.md) - [Model.RecordingStateEnum](docs/RecordingStateEnum.md) + - [Model.RecordingTranscriptionClip](docs/RecordingTranscriptionClip.md) - [Model.RecordingTranscriptionMetadata](docs/RecordingTranscriptionMetadata.md) - [Model.RecordingTranscriptions](docs/RecordingTranscriptions.md) - [Model.RedirectCallback](docs/RedirectCallback.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 8d7e9ff8..30acc9ae 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -11949,15 +11949,73 @@ components: recordingTranscriptions: example: transcripts: - - confidence: 0.9 - text: "Nice talking to you, friend!" - - confidence: 0.9 - text: "Nice talking to you, friend!" + - speaker: 0 + text: "Hi, is Thursday at two still good for you? Perfect, talk soon." + confidence: 0.96 + - speaker: 1 + text: "Yes, that works great. See you then! Sounds good, bye!" + confidence: 0.97 + clips: + - speaker: 0 + text: "Hi, is Thursday at two still good for you?" + confidence: 0.97 + startTimeSeconds: 0.4 + endTimeSeconds: 3.1 + - speaker: 1 + text: "Yes, that works great. See you then!" + confidence: 0.95 + startTimeSeconds: 3.8 + endTimeSeconds: 6.2 + - speaker: 0 + text: "Perfect, talk soon." + confidence: 0.94 + startTimeSeconds: 6.9 + endTimeSeconds: 8.1 + - speaker: 1 + text: "Sounds good, bye!" + confidence: 0.98 + startTimeSeconds: 8.5 + endTimeSeconds: 9.7 properties: transcripts: items: $ref: '#/components/schemas/transcription' type: array + clips: + description: "A list of individual speech clips with speaker, timing, and\ + \ confidence information." + items: + $ref: '#/components/schemas/recordingTranscriptionClip' + type: array + type: object + recordingTranscriptionClip: + properties: + speaker: + description: Zero-based index identifying the speaker. + example: 0 + type: integer + text: + description: The transcribed text of this clip. + example: "Hi there, thanks for calling!" + type: string + confidence: + description: How confident the transcription engine was in transcribing + this clip (from `0.0` to `1.0`). + example: 0.85 + format: double + maximum: 1 + minimum: 0 + type: number + startTimeSeconds: + description: "The start time of this clip within the recording, in seconds." + example: 2.3 + format: double + type: number + endTimeSeconds: + description: "The end time of this clip within the recording, in seconds." + example: 3.1 + format: double + type: number type: object callTranscriptionMetadataList: example: @@ -14048,10 +14106,11 @@ components: type: string type: object transcription: - example: - confidence: 0.9 - text: "Nice talking to you, friend!" properties: + speaker: + description: Zero-based index identifying the speaker. + example: 0 + type: integer text: description: The transcribed text example: "Nice talking to you, friend!" diff --git a/bandwidth.yml b/bandwidth.yml index a380e26d..fd39c5cb 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -4354,6 +4354,72 @@ components: type: array items: $ref: '#/components/schemas/transcription' + clips: + type: array + description: >- + A list of individual speech clips with speaker, timing, and + confidence information. + items: + $ref: '#/components/schemas/recordingTranscriptionClip' + example: + transcripts: + - speaker: 0 + text: Hi, is Thursday at two still good for you? Perfect, talk soon. + confidence: 0.96 + - speaker: 1 + text: Yes, that works great. See you then! Sounds good, bye! + confidence: 0.97 + clips: + - speaker: 0 + text: Hi, is Thursday at two still good for you? + confidence: 0.97 + startTimeSeconds: 0.4 + endTimeSeconds: 3.1 + - speaker: 1 + text: Yes, that works great. See you then! + confidence: 0.95 + startTimeSeconds: 3.8 + endTimeSeconds: 6.2 + - speaker: 0 + text: Perfect, talk soon. + confidence: 0.94 + startTimeSeconds: 6.9 + endTimeSeconds: 8.1 + - speaker: 1 + text: Sounds good, bye! + confidence: 0.98 + startTimeSeconds: 8.5 + endTimeSeconds: 9.7 + recordingTranscriptionClip: + type: object + properties: + speaker: + type: integer + description: Zero-based index identifying the speaker. + example: 0 + text: + type: string + description: The transcribed text of this clip. + example: Hi there, thanks for calling! + confidence: + type: number + format: double + minimum: 0 + maximum: 1 + description: >- + How confident the transcription engine was in transcribing this clip + (from `0.0` to `1.0`). + example: 0.85 + startTimeSeconds: + type: number + format: double + description: The start time of this clip within the recording, in seconds. + example: 2.3 + endTimeSeconds: + type: number + format: double + description: The end time of this clip within the recording, in seconds. + example: 3.1 callTranscriptionMetadataList: type: array items: @@ -5480,6 +5546,10 @@ components: transcription: type: object properties: + speaker: + type: integer + description: Zero-based index identifying the speaker. + example: 0 text: type: string description: The transcribed text diff --git a/docs/RecordingTranscriptionClip.md b/docs/RecordingTranscriptionClip.md new file mode 100644 index 00000000..70dc7cae --- /dev/null +++ b/docs/RecordingTranscriptionClip.md @@ -0,0 +1,14 @@ +# Bandwidth.Standard.Model.RecordingTranscriptionClip + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Speaker** | **int** | Zero-based index identifying the speaker. | [optional] +**Text** | **string** | The transcribed text of this clip. | [optional] +**Confidence** | **double** | How confident the transcription engine was in transcribing this clip (from `0.0` to `1.0`). | [optional] +**StartTimeSeconds** | **double** | The start time of this clip within the recording, in seconds. | [optional] +**EndTimeSeconds** | **double** | The end time of this clip within the recording, in seconds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RecordingTranscriptions.md b/docs/RecordingTranscriptions.md index 23a4c666..a0bf0c0f 100644 --- a/docs/RecordingTranscriptions.md +++ b/docs/RecordingTranscriptions.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Transcripts** | [**List<Transcription>**](Transcription.md) | | [optional] +**Clips** | [**List<RecordingTranscriptionClip>**](RecordingTranscriptionClip.md) | A list of individual speech clips with speaker, timing, and confidence information. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Transcription.md b/docs/Transcription.md index 47c3445f..c277e196 100644 --- a/docs/Transcription.md +++ b/docs/Transcription.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Speaker** | **int** | Zero-based index identifying the speaker. | [optional] **Text** | **string** | The transcribed text | [optional] **Confidence** | **double** | The confidence on the recognized content, ranging from `0.0` to `1.0` with `1.0` being the highest confidence. | [optional] diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index 9f3005e4..c6222673 100644 --- a/src/Bandwidth.Standard/Model/RbmActionBase.cs +++ b/src/Bandwidth.Standard/Model/RbmActionBase.cs @@ -78,7 +78,7 @@ protected RbmActionBase() { } /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@2b76ecd5 + /// [B@2041c9a3 [DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs index 5ea253c5..b443fb9a 100644 --- a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs +++ b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs @@ -57,7 +57,7 @@ public partial class RbmSuggestionResponse : IValidatableObject /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@2b76ecd5 + /// [B@2041c9a3 [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RecordingTranscriptionClip.cs b/src/Bandwidth.Standard/Model/RecordingTranscriptionClip.cs new file mode 100644 index 00000000..21b49b7b --- /dev/null +++ b/src/Bandwidth.Standard/Model/RecordingTranscriptionClip.cs @@ -0,0 +1,141 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// RecordingTranscriptionClip + /// + [DataContract(Name = "recordingTranscriptionClip")] + public partial class RecordingTranscriptionClip : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Zero-based index identifying the speaker.. + /// The transcribed text of this clip.. + /// How confident the transcription engine was in transcribing this clip (from `0.0` to `1.0`).. + /// The start time of this clip within the recording, in seconds.. + /// The end time of this clip within the recording, in seconds.. + public RecordingTranscriptionClip(int speaker = default(int), string text = default(string), double confidence = default(double), double startTimeSeconds = default(double), double endTimeSeconds = default(double)) + { + this.Speaker = speaker; + this.Text = text; + this.Confidence = confidence; + this.StartTimeSeconds = startTimeSeconds; + this.EndTimeSeconds = endTimeSeconds; + } + + /// + /// Zero-based index identifying the speaker. + /// + /// Zero-based index identifying the speaker. + /// 0 + [DataMember(Name = "speaker", EmitDefaultValue = false)] + public int Speaker { get; set; } + + /// + /// The transcribed text of this clip. + /// + /// The transcribed text of this clip. + /// Hi there, thanks for calling! + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } + + /// + /// How confident the transcription engine was in transcribing this clip (from `0.0` to `1.0`). + /// + /// How confident the transcription engine was in transcribing this clip (from `0.0` to `1.0`). + /// 0.85 + [DataMember(Name = "confidence", EmitDefaultValue = false)] + public double Confidence { get; set; } + + /// + /// The start time of this clip within the recording, in seconds. + /// + /// The start time of this clip within the recording, in seconds. + /// 2.3 + [DataMember(Name = "startTimeSeconds", EmitDefaultValue = false)] + public double StartTimeSeconds { get; set; } + + /// + /// The end time of this clip within the recording, in seconds. + /// + /// The end time of this clip within the recording, in seconds. + /// 3.1 + [DataMember(Name = "endTimeSeconds", EmitDefaultValue = false)] + public double EndTimeSeconds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RecordingTranscriptionClip {\n"); + sb.Append(" Speaker: ").Append(Speaker).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Confidence: ").Append(Confidence).Append("\n"); + sb.Append(" StartTimeSeconds: ").Append(StartTimeSeconds).Append("\n"); + sb.Append(" EndTimeSeconds: ").Append(EndTimeSeconds).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Confidence (double) maximum + if (this.Confidence > (double)1) + { + yield return new ValidationResult("Invalid value for Confidence, must be a value less than or equal to 1.", new [] { "Confidence" }); + } + + // Confidence (double) minimum + if (this.Confidence < (double)0) + { + yield return new ValidationResult("Invalid value for Confidence, must be a value greater than or equal to 0.", new [] { "Confidence" }); + } + + yield break; + } + } + +} diff --git a/src/Bandwidth.Standard/Model/RecordingTranscriptions.cs b/src/Bandwidth.Standard/Model/RecordingTranscriptions.cs index e54c76a5..229baea8 100644 --- a/src/Bandwidth.Standard/Model/RecordingTranscriptions.cs +++ b/src/Bandwidth.Standard/Model/RecordingTranscriptions.cs @@ -36,9 +36,11 @@ public partial class RecordingTranscriptions : IValidatableObject /// Initializes a new instance of the class. /// /// transcripts. - public RecordingTranscriptions(List transcripts = default(List)) + /// A list of individual speech clips with speaker, timing, and confidence information.. + public RecordingTranscriptions(List transcripts = default(List), List clips = default(List)) { this.Transcripts = transcripts; + this.Clips = clips; } /// @@ -47,6 +49,13 @@ public partial class RecordingTranscriptions : IValidatableObject [DataMember(Name = "transcripts", EmitDefaultValue = false)] public List Transcripts { get; set; } + /// + /// A list of individual speech clips with speaker, timing, and confidence information. + /// + /// A list of individual speech clips with speaker, timing, and confidence information. + [DataMember(Name = "clips", EmitDefaultValue = false)] + public List Clips { get; set; } + /// /// Returns the string presentation of the object /// @@ -56,6 +65,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class RecordingTranscriptions {\n"); sb.Append(" Transcripts: ").Append(Transcripts).Append("\n"); + sb.Append(" Clips: ").Append(Clips).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Bandwidth.Standard/Model/Transcription.cs b/src/Bandwidth.Standard/Model/Transcription.cs index cbacda4e..66067923 100644 --- a/src/Bandwidth.Standard/Model/Transcription.cs +++ b/src/Bandwidth.Standard/Model/Transcription.cs @@ -35,14 +35,24 @@ public partial class Transcription : IValidatableObject /// /// Initializes a new instance of the class. /// + /// Zero-based index identifying the speaker.. /// The transcribed text. /// The confidence on the recognized content, ranging from `0.0` to `1.0` with `1.0` being the highest confidence.. - public Transcription(string text = default(string), double confidence = default(double)) + public Transcription(int speaker = default(int), string text = default(string), double confidence = default(double)) { + this.Speaker = speaker; this.Text = text; this.Confidence = confidence; } + /// + /// Zero-based index identifying the speaker. + /// + /// Zero-based index identifying the speaker. + /// 0 + [DataMember(Name = "speaker", EmitDefaultValue = false)] + public int Speaker { get; set; } + /// /// The transcribed text /// @@ -67,6 +77,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class Transcription {\n"); + sb.Append(" Speaker: ").Append(Speaker).Append("\n"); sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" Confidence: ").Append(Confidence).Append("\n"); sb.Append("}\n"); From a9e5f0df360d69eed17b66dde0cc90879eaed553 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 23 Jun 2026 14:16:05 -0400 Subject: [PATCH 2/2] unit tests --- .../Model/RecordingTranscriptionClipTests.cs | 111 ++++++++++++++++++ .../Model/RecordingTranscriptionsTests.cs | 10 ++ .../Unit/Model/TranscriptionTests.cs | 11 ++ 3 files changed, 132 insertions(+) create mode 100644 src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionClipTests.cs diff --git a/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionClipTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionClipTests.cs new file mode 100644 index 00000000..47866eff --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionClipTests.cs @@ -0,0 +1,111 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing RecordingTranscriptionClip + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class RecordingTranscriptionClipTests : IDisposable + { + private RecordingTranscriptionClip instance; + + public RecordingTranscriptionClipTests() + { + instance = new RecordingTranscriptionClip( + speaker: 1, + text: "text", + confidence: 0.9, + startTimeSeconds: 0.0, + endTimeSeconds: 1.0 + ); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RecordingTranscriptionClip + /// + [Fact] + public void RecordingTranscriptionClipInstanceTest() + { + Assert.IsType(instance); + } + + /// + /// Test the property 'Speaker' + /// + [Fact] + public void SpeakerTest() + { + Assert.IsType(instance.Speaker); + Assert.Equal(1, instance.Speaker); + } + + /// + /// Test the property 'Text' + /// + [Fact] + public void TextTest() + { + Assert.IsType(instance.Text); + Assert.Equal("text", instance.Text); + } + + /// + /// Test the property 'Confidence' + /// + [Fact] + public void ConfidenceTest() + { + Assert.IsType(instance.Confidence); + Assert.Equal(0.9, instance.Confidence); + } + + /// + /// Test the property 'StartTimeSeconds' + /// + [Fact] + public void StartTimeSecondsTest() + { + Assert.IsType(instance.StartTimeSeconds); + Assert.Equal(0.0, instance.StartTimeSeconds); + } + + /// + /// Test the property 'EndTimeSeconds' + /// + [Fact] + public void EndTimeSecondsTest() + { + Assert.IsType(instance.EndTimeSeconds); + Assert.Equal(1.0, instance.EndTimeSeconds); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionsTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionsTests.cs index e7f058e7..7f9d8a31 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionsTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/RecordingTranscriptionsTests.cs @@ -61,5 +61,15 @@ public void TranscriptsTest() instance.Transcripts = new List(); Assert.IsType>(instance.Transcripts); } + + /// + /// Test the property 'Clips' + /// + [Fact] + public void ClipsTest() + { + instance.Clips = new List(); + Assert.IsType>(instance.Clips); + } } } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/TranscriptionTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/TranscriptionTests.cs index b1b81567..beeda49e 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/TranscriptionTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/TranscriptionTests.cs @@ -48,6 +48,16 @@ public void TranscriptionInstanceTest() Assert.IsType(instance); } + /// + /// Test the property 'Speaker' + /// + [Fact] + public void SpeakerTest() + { + instance.Speaker = 1; + Assert.IsType(instance.Speaker); + Assert.Equal(1, instance.Speaker); + } /// /// Test the property 'Text' @@ -59,6 +69,7 @@ public void TextTest() Assert.IsType(instance.Text); Assert.Equal("test", instance.Text); } + /// /// Test the property 'Confidence' ///