From 24e8ad17fc428b3fbee88c0a6f7b87e80eb4507e Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Mon, 3 Feb 2025 10:53:14 +0000
Subject: [PATCH 1/4] SDK regeneration
---
reference.md | 6 +++---
src/AssemblyAI/AssemblyAI.csproj | 2 +-
src/AssemblyAI/Core/Public/Version.cs | 2 +-
src/AssemblyAI/Transcripts/TranscriptsClient.cs | 10 +++++-----
src/AssemblyAI/Transcripts/Types/Transcript.cs | 4 ++--
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/reference.md b/reference.md
index f847917..86cb254 100644
--- a/reference.md
+++ b/reference.md
@@ -298,9 +298,9 @@ Export your transcript in SRT or VTT format to use with a video player for subti
```csharp
await client.Transcripts.GetSubtitlesAsync(
- "string",
+ "transcript_id",
SubtitleFormat.Srt,
- new GetSubtitlesParams { CharsPerCaption = 1 }
+ new GetSubtitlesParams()
);
```
@@ -479,7 +479,7 @@ Search through the transcript for keywords. You can search for individual words,
```csharp
-await client.Transcripts.WordSearchAsync("string", new WordSearchParams { Words = ["string"] });
+await client.Transcripts.WordSearchAsync("transcript_id", new WordSearchParams());
```
diff --git a/src/AssemblyAI/AssemblyAI.csproj b/src/AssemblyAI/AssemblyAI.csproj
index 593c6d6..bcba63e 100644
--- a/src/AssemblyAI/AssemblyAI.csproj
+++ b/src/AssemblyAI/AssemblyAI.csproj
@@ -6,7 +6,7 @@
enable
12
enable
- 1.2.1
+ 1.2.2
$(Version)
$(Version)
README.md
diff --git a/src/AssemblyAI/Core/Public/Version.cs b/src/AssemblyAI/Core/Public/Version.cs
index 93e43c9..0eef111 100644
--- a/src/AssemblyAI/Core/Public/Version.cs
+++ b/src/AssemblyAI/Core/Public/Version.cs
@@ -2,5 +2,5 @@ namespace AssemblyAI;
internal class Version
{
- public const string Current = "1.2.1";
+ public const string Current = "1.2.2";
}
diff --git a/src/AssemblyAI/Transcripts/TranscriptsClient.cs b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
index 7fae161..b18474f 100644
--- a/src/AssemblyAI/Transcripts/TranscriptsClient.cs
+++ b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
@@ -280,9 +280,9 @@ public async Task DeleteAsync(
///
///
/// await client.Transcripts.GetSubtitlesAsync(
- /// "string",
+ /// "transcript_id",
/// SubtitleFormat.Srt,
- /// new GetSubtitlesParams { CharsPerCaption = 1 }
+ /// new GetSubtitlesParams()
/// );
///
///
@@ -303,8 +303,8 @@ public async Task GetSubtitlesAsync(
new RawClient.JsonApiRequest
{
BaseUrl = _client.Options.BaseUrl,
- Method = HttpMethod.Get,
- Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}",
+ Method = HttpMethod.Get,
+ Path = $"v2/transcript/{transcriptId}/{subtitleFormat}",
Query = _query,
Options = options,
},
@@ -415,7 +415,7 @@ public async Task GetParagraphsAsync(
///
///
///
- /// await client.Transcripts.WordSearchAsync("string", new WordSearchParams { Words = ["string"] });
+ /// await client.Transcripts.WordSearchAsync("transcript_id", new WordSearchParams());
///
///
public async Task WordSearchAsync(
diff --git a/src/AssemblyAI/Transcripts/Types/Transcript.cs b/src/AssemblyAI/Transcripts/Types/Transcript.cs
index c20869d..ec76a30 100644
--- a/src/AssemblyAI/Transcripts/Types/Transcript.cs
+++ b/src/AssemblyAI/Transcripts/Types/Transcript.cs
@@ -69,8 +69,8 @@ public record Transcript
public IEnumerable? Words { get; set; }
///
- /// When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
- /// See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more information.
+ /// When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
+ /// See [Speaker diarization](https://www.assemblyai.com/docs/speech-to-text/speaker-diarization) and [Multichannel transcription](https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription) for more information.
///
[JsonPropertyName("utterances")]
public IEnumerable? Utterances { get; set; }
From 401ae51709b846f9e96c7650005f452513020756 Mon Sep 17 00:00:00 2001
From: Marcus Olsson <8396880+marcusolsson@users.noreply.github.com>
Date: Tue, 4 Feb 2025 11:16:20 +0100
Subject: [PATCH 2/4] Fix build issue
---
src/AssemblyAI/Transcripts/TranscriptsClient.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/AssemblyAI/Transcripts/TranscriptsClient.cs b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
index b18474f..ec39f1a 100644
--- a/src/AssemblyAI/Transcripts/TranscriptsClient.cs
+++ b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
@@ -304,7 +304,7 @@ public async Task GetSubtitlesAsync(
{
BaseUrl = _client.Options.BaseUrl,
Method = HttpMethod.Get,
- Path = $"v2/transcript/{transcriptId}/{subtitleFormat}",
+ Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}",
Query = _query,
Options = options,
},
From 44ced302196f64ea2cae14ff97169aa86e717afb Mon Sep 17 00:00:00 2001
From: Marcus Olsson <8396880+marcusolsson@users.noreply.github.com>
Date: Tue, 4 Feb 2025 18:23:46 +0100
Subject: [PATCH 3/4] Revert "Fix build issue"
This reverts commit 401ae51709b846f9e96c7650005f452513020756.
---
src/AssemblyAI/Transcripts/TranscriptsClient.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/AssemblyAI/Transcripts/TranscriptsClient.cs b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
index ec39f1a..b18474f 100644
--- a/src/AssemblyAI/Transcripts/TranscriptsClient.cs
+++ b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
@@ -304,7 +304,7 @@ public async Task GetSubtitlesAsync(
{
BaseUrl = _client.Options.BaseUrl,
Method = HttpMethod.Get,
- Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}",
+ Path = $"v2/transcript/{transcriptId}/{subtitleFormat}",
Query = _query,
Options = options,
},
From e680e2282ae164c511d0840526739f4ce6e3bfb9 Mon Sep 17 00:00:00 2001
From: Marcus Olsson <8396880+marcusolsson@users.noreply.github.com>
Date: Tue, 4 Feb 2025 18:24:56 +0100
Subject: [PATCH 4/4] Reapply "Fix build issue"
This reverts commit 44ced302196f64ea2cae14ff97169aa86e717afb.
---
src/AssemblyAI/Transcripts/TranscriptsClient.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/AssemblyAI/Transcripts/TranscriptsClient.cs b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
index b18474f..ec39f1a 100644
--- a/src/AssemblyAI/Transcripts/TranscriptsClient.cs
+++ b/src/AssemblyAI/Transcripts/TranscriptsClient.cs
@@ -304,7 +304,7 @@ public async Task GetSubtitlesAsync(
{
BaseUrl = _client.Options.BaseUrl,
Method = HttpMethod.Get,
- Path = $"v2/transcript/{transcriptId}/{subtitleFormat}",
+ Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}",
Query = _query,
Options = options,
},