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
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::AsyncAI.St

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-status", @"API status check");
var command = new Command(commandName ?? @"get-status", @"API status check");
command.Options.Add(Version);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ internal static partial class TextToSpeechStreamSpeechCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"stream-speech", @"Text to speech stream
var command = new Command(commandName ?? @"stream-speech", @"Text to speech stream
Generates speech from text and streams audio in the response body.");
command.Options.Add(Version); command.Options.Add(TextToSpeechRequestOptionSetOptions.ModelId);
command.Options.Add(TextToSpeechRequestOptionSetOptions.Transcript);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ internal static partial class TextToSpeechSynthesizeSpeechCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"synthesize-speech", @"Text to speech
var command = new Command(commandName ?? @"synthesize-speech", @"Text to speech
Generates speech from text and returns complete audio.");
command.Options.Add(Version); command.Options.Add(TextToSpeechRequestOptionSetOptions.ModelId);
command.Options.Add(TextToSpeechRequestOptionSetOptions.Transcript);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::AsyncAI.Te

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"synthesize-speech-with-timestamps", @"Text to speech with word timestamps
var command = new Command(commandName ?? @"synthesize-speech-with-timestamps", @"Text to speech with word timestamps
Generates speech and returns base64 audio with word-level timestamps.");
command.Options.Add(Version); command.Options.Add(TextToSpeechRequestOptionSetOptions.ModelId);
command.Options.Add(TextToSpeechRequestOptionSetOptions.Transcript);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ private static string FormatResponse(ParseResult parseResult, global::AsyncAI.Cl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"clone-voice", @"Clone voice
var command = new Command(commandName ?? @"clone-voice", @"Clone voice
Clones a voice from a short audio clip.");
command.Arguments.Add(NameOption);
command.Options.Add(Version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ internal static partial class VoiceManagementDeleteVoiceCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"delete-voice", @"Delete voice
var command = new Command(commandName ?? @"delete-voice", @"Delete voice
Deletes a cloned voice by id.");
command.Arguments.Add(Id);
command.Options.Add(Version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::AsyncAI.Vo

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-voice", @"Get voice
var command = new Command(commandName ?? @"get-voice", @"Get voice
Gets a voice by id.");
command.Arguments.Add(Id);
command.Options.Add(Version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::AsyncAI.Vo

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-voice-preview", @"Get voice preview
var command = new Command(commandName ?? @"get-voice-preview", @"Get voice preview
Gets a signed URL for voice preview audio.");
command.Arguments.Add(Id);
command.Options.Add(Version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::System.Col

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-voices-batch", @"Get voices by id
var command = new Command(commandName ?? @"get-voices-batch", @"Get voices by id
Gets multiple voices by voice id.");
command.Options.Add(Version);
command.Options.Add(VoiceIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ private static string FormatResponse(ParseResult parseResult, global::AsyncAI.Li

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-voices", @"List voices
var command = new Command(commandName ?? @"list-voices", @"List voices
Lists available voices from the voice library.");
command.Options.Add(Version);
command.Options.Add(Limit);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ internal static partial class VoiceManagementUpdateVoiceCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"update-voice", @"Update voice
var command = new Command(commandName ?? @"update-voice", @"Update voice
Updates metadata for a cloned voice.");
command.Arguments.Add(Id);
command.Options.Add(Version);
Expand Down
Loading