Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
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
6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
```
</dd>
Expand Down Expand Up @@ -479,7 +479,7 @@ Search through the transcript for keywords. You can search for individual words,
<dd>

```csharp
await client.Transcripts.WordSearchAsync("string", new WordSearchParams { Words = ["string"] });
await client.Transcripts.WordSearchAsync("transcript_id", new WordSearchParams());
```
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion src/AssemblyAI/AssemblyAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
2 changes: 1 addition & 1 deletion src/AssemblyAI/Core/Public/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ namespace AssemblyAI;

internal class Version
{
public const string Current = "1.2.1";
public const string Current = "1.2.2";
}
8 changes: 4 additions & 4 deletions src/AssemblyAI/Transcripts/TranscriptsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ public async Task<Transcript> DeleteAsync(
/// <example>
/// <code>
/// await client.Transcripts.GetSubtitlesAsync(
/// "string",
/// "transcript_id",
/// SubtitleFormat.Srt,
/// new GetSubtitlesParams { CharsPerCaption = 1 }
/// new GetSubtitlesParams()
/// );
/// </code>
/// </example>
Expand All @@ -303,7 +303,7 @@ public async Task<string> GetSubtitlesAsync(
new RawClient.JsonApiRequest
{
BaseUrl = _client.Options.BaseUrl,
Method = HttpMethod.Get,
Method = HttpMethod.Get,
Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}",
Query = _query,
Options = options,
Expand Down Expand Up @@ -415,7 +415,7 @@ public async Task<ParagraphsResponse> GetParagraphsAsync(
/// </summary>
/// <example>
/// <code>
/// await client.Transcripts.WordSearchAsync("string", new WordSearchParams { Words = ["string"] });
/// await client.Transcripts.WordSearchAsync("transcript_id", new WordSearchParams());
/// </code>
/// </example>
public async Task<WordSearchResponse> WordSearchAsync(
Expand Down
4 changes: 2 additions & 2 deletions src/AssemblyAI/Transcripts/Types/Transcript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public record Transcript
public IEnumerable<TranscriptWord>? Words { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonPropertyName("utterances")]
public IEnumerable<TranscriptUtterance>? Utterances { get; set; }
Expand Down