MCPcopy Create free account
hub / github.com/HumeAI/hume-api-examples / RunExamplesAsync

Method RunExamplesAsync

tts/tts-dotnet-quickstart/Program.cs:47–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 };
46
47 static async Task RunExamplesAsync()
48 {
49 // Get the API key from .env file
50 Env.Load();
51
52 Console.WriteLine("Starting...");
53
54 _apiKey = Environment.GetEnvironmentVariable(HumeApiKey);
55 if (string.IsNullOrEmpty(_apiKey))
56 {
57 throw new InvalidOperationException($"{HumeApiKey} not found in environment variables.");
58 }
59
60 _client = new HumeClient(_apiKey);
61
62 await Example1Async();
63 await Example2Async();
64 await Example3Async();
65
66 Console.WriteLine("Done");
67 }
68
69 static async Task Main(string[] args)
70 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected