Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions Bandwidth.Standard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
73 changes: 66 additions & 7 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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!"
Expand Down
70 changes: 70 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions docs/RecordingTranscriptionClip.md
Original file line number Diff line number Diff line change
@@ -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)

1 change: 1 addition & 0 deletions docs/RecordingTranscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

1 change: 1 addition & 0 deletions docs/Transcription.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Class for testing RecordingTranscriptionClip
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
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.
}

/// <summary>
/// Test an instance of RecordingTranscriptionClip
/// </summary>
[Fact]
public void RecordingTranscriptionClipInstanceTest()
{
Assert.IsType<RecordingTranscriptionClip>(instance);
}

/// <summary>
/// Test the property 'Speaker'
/// </summary>
[Fact]
public void SpeakerTest()
{
Assert.IsType<int>(instance.Speaker);
Assert.Equal(1, instance.Speaker);
}

/// <summary>
/// Test the property 'Text'
/// </summary>
[Fact]
public void TextTest()
{
Assert.IsType<string>(instance.Text);
Assert.Equal("text", instance.Text);
}

/// <summary>
/// Test the property 'Confidence'
/// </summary>
[Fact]
public void ConfidenceTest()
{
Assert.IsType<double>(instance.Confidence);
Assert.Equal(0.9, instance.Confidence);
}

/// <summary>
/// Test the property 'StartTimeSeconds'
/// </summary>
[Fact]
public void StartTimeSecondsTest()
{
Assert.IsType<double>(instance.StartTimeSeconds);
Assert.Equal(0.0, instance.StartTimeSeconds);
}

/// <summary>
/// Test the property 'EndTimeSeconds'
/// </summary>
[Fact]
public void EndTimeSecondsTest()
{
Assert.IsType<double>(instance.EndTimeSeconds);
Assert.Equal(1.0, instance.EndTimeSeconds);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,15 @@ public void TranscriptsTest()
instance.Transcripts = new List<Transcription>();
Assert.IsType<List<Transcription>>(instance.Transcripts);
}

/// <summary>
/// Test the property 'Clips'
/// </summary>
[Fact]
public void ClipsTest()
{
instance.Clips = new List<RecordingTranscriptionClip>();
Assert.IsType<List<RecordingTranscriptionClip>>(instance.Clips);
}
}
}
Loading
Loading