if(!bool.TryParse(GetOptionalEnvironmentVariable("VOICEBOX_RUN_TTS_E2E"),outvarrunE2E)||!runE2E){thrownewAssertInconclusiveException("Set VOICEBOX_RUN_TTS_E2E=true and VOICEBOX_REFERENCE_AUDIO_PATH to run the full voice cloning TTS test.");}varclient=Client;varclonedVoice=awaitCreateClonedVoiceProfileAsync(requireExternalAudio:true);GenerationResponse?generation=null;try{// Generate speech using the newly-created cloned profile.// VOICEBOX_LANGUAGE defaults to ru, VOICEBOX_ENGINE defaults to qwen, and VOICEBOX_MODEL_SIZE defaults to 0.6B for faster local validation.generation=awaitclient.GenerateSpeechGeneratePostAsync(newGenerationRequest{ProfileId=clonedVoice.Profile.Id,Text=TestGeneratedText,Language=TestLanguage,Engine=TestEngine,ModelSize=TestModelSize,Seed=1,Normalize=true,MaxChunkChars=300,});// Voicebox generates asynchronously, so poll history until completion and then download the produced audio.varcompleted=awaitWaitForGenerationAsync(generation.Id);varaudio=awaitDownloadAudioAsync($"audio/{generation.Id}");}finally{awaitTryDeleteGenerationAsync(generation?.Id);awaitTryDeleteProfileAsync(clonedVoice.Profile.Id);}