Generate dialogue, sound effects, and ambience from one prompt with Seed Audio 1.0.
This example assumes using BytePlusSeedSpeech; is in scope and apiKey contains your BytePlusSeedSpeech API key.
1 2 3 4 5 6 7 8 9101112131415161718
usingvarclient=newBytePlusSeedSpeechClient(apiKey);varresponse=awaitclient.CreateAudioAsync(newCreateAudioRequest{Model="seed-audio-1.0",TextPrompt="Inside a football stadium, the crowd erupts as the commentator shouts: \"What a goal!\"",AudioConfig=newAudioConfig{Format=AudioFormat.Wav,SampleRate=24000,EnableSubtitle=true,},Watermark=newWatermarkConfig{AigcWatermark=false,},});