client.CreateSpeech(...)
例
主なパラメーター
model(必須): TTS対応モデルのID。input(必須): 音声に合成するテキスト。voice: 音声のプリセット(モデルによって異なります。例:alloy)。format:mp3、wav、flacなど。speed: 再生速度の倍率(通常は0.25~4)。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
C# SDKで/audio/speechを呼び出します。
client.CreateSpeech(...)
using PhaseoSdk;
var client = new Phaseo(apiKey);
var response = await client.CreateSpeech(new Dictionary<string, object>
{
["model"] = "openai/gpt-4o-mini-tts",
["input"] = "Hello world",
["voice"] = "alloy",
["format"] = "mp3"
});
model(必須): TTS対応モデルのID。input(必須): 音声に合成するテキスト。voice: 音声のプリセット(モデルによって異なります。例: alloy)。format: mp3、wav、flacなど。speed: 再生速度の倍率(通常は0.25~4)。