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..ec39f1a 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,7 +303,7 @@ public async Task GetSubtitlesAsync( new RawClient.JsonApiRequest { BaseUrl = _client.Options.BaseUrl, - Method = HttpMethod.Get, + Method = HttpMethod.Get, Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}", 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; }