This example assumes using LalalAI; is in scope and apiKey contains your LalalAI API key.
123456789
varapiKey=Environment.GetEnvironmentVariable("LALALAI_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("LALALAI_API_KEY environment variable is not found.");usingvarclient=newLalalAIClient(apiKey);// The client provides methods for uploading files, splitting stems,// cleaning voice, changing voice, and checking task status.