Fetch all voices available to the authenticated account and print each voice name and ID so you can pick one for text-to-speech requests.
This example assumes using ElevenLabs; is in scope and apiKey contains your ElevenLabs API key.
1 2 3 4 5 6 7 8 910
usingvarclient=newElevenLabsClient(apiKey);// Fetch all voices for the authenticated workspace.GetVoicesResponseModelresponse=awaitclient.Voices.GetAllAsync();// Print the voice names and IDs so you can reuse a voice in text-to-speech.foreach(varvoiceinresponse.Voices){Console.WriteLine($"{voice.Name} ({voice.VoiceId})");}