YukkuriMovieMaker.Plugin.Voice.IVoiceSpeaker
Edit on GitHub

Last updated: July 23, 2026

AI 要約

定義

名前空間: YukkuriMovieMaker.Plugin.Voice

アセンブリ: YukkuriMovieMaker.Plugin.dll

音声合成話者を表すインターフェースです。

public interface IVoiceSpeaker

注釈

IVoicePlugin.Voices から列挙される各話者がこのインターフェースを実装します。 APIID の組み合わせで話者を一意に識別します。

メソッド

名前 説明
ConvertKanjiToYomiAsync テキストを読みに変換して返します。
CreateVoiceAsync 音声ファイルを非同期に生成します。
CreateVoiceParameter この話者のデフォルトパラメーターを生成して返します。
IsMatch 指定したAPIとIDがこの話者に一致するかどうかを返します。
MigrateParameter 古いパラメーターを現在のバージョンに移行して返します。

ConvertKanjiToYomiAsync

テキストを読みに変換して返します。

Task<string> ConvertKanjiToYomiAsync(string text, IVoiceParameter voiceParameter);

パラメーター

text System.String

voiceParameter YukkuriMovieMaker.Plugin.Voice.IVoiceParameter

注釈

FormatSupportedTextFormat.Yukkuri または SupportedTextFormat.YukkuriLite の場合に読みUI表示で使用されます。 読み変換に対応しない場合は text をそのまま返してください。

CreateVoiceAsync

音声ファイルを非同期に生成します。

Task<IVoicePronounce?> CreateVoiceAsync(string text, IVoicePronounce? pronounce, IVoiceParameter? parameter, string filePath);

パラメーター

text System.String

pronounce YukkuriMovieMaker.Plugin.Voice.IVoicePronounce?

parameter YukkuriMovieMaker.Plugin.Voice.IVoiceParameter?

filePath System.String

注釈

音声を合成して filePath にWAVファイルとして書き出してください。 pronounce は前回生成時の読み情報で、再利用できる場合はそのまま返せます。 戻り値の IVoicePronounce はリップシンクや読み調整情報を含みます。 失敗した場合は null を返してください。

CreateVoiceParameter

この話者のデフォルトパラメーターを生成して返します。

IVoiceParameter CreateVoiceParameter();

戻り値

YukkuriMovieMaker.Plugin.Voice.IVoiceParameter

IsMatch

指定したAPIとIDがこの話者に一致するかどうかを返します。

bool IsMatch(string api, string id);

パラメーター

api System.String

id System.String

注釈

通常は API == api && ID == id を返します。後方互換のため別名のIDを受け付ける場合はそれも含めてください。

MigrateParameter

古いパラメーターを現在のバージョンに移行して返します。

IVoiceParameter MigrateParameter(IVoiceParameter currentParameter);

パラメーター

currentParameter YukkuriMovieMaker.Plugin.Voice.IVoiceParameter

戻り値

YukkuriMovieMaker.Plugin.Voice.IVoiceParameter

注釈

プロジェクトを開いたときに古いパラメーター型が渡される場合があります。 型が一致する場合はそのまま返し、異なる場合は変換して返してください。 移行できない場合は CreateVoiceParameter() の結果を返してください。

プロパティー

名前 説明
API System.String 話者を識別するAPIキーを取得します。プラグイン内で一意の文字列です。
EngineName System.String 音声合成エンジンの名前を取得します。
Format YukkuriMovieMaker.Plugin.Voice.SupportedTextFormat この話者がサポートするテキストフォーマットを取得します。
ID System.String 話者を識別するIDを取得します。エンジン内で一意の文字列です。
IsVoiceDataCachingRequired System.Boolean 音声データのキャッシュが必要かどうかを取得します。
SpeakerName System.String 話者名を取得します。

API

話者を識別するAPIキーを取得します。プラグイン内で一意の文字列です。

String API { get; }

プロパティー値

System.String

EngineName

音声合成エンジンの名前を取得します。

String EngineName { get; }

プロパティー値

System.String

Format

この話者がサポートするテキストフォーマットを取得します。

SupportedTextFormat Format { get; }

ID

話者を識別するIDを取得します。エンジン内で一意の文字列です。

String ID { get; }

プロパティー値

System.String

IsVoiceDataCachingRequired

音声データのキャッシュが必要かどうかを取得します。

Boolean IsVoiceDataCachingRequired { get; }

プロパティー値

System.Boolean

SpeakerName

話者名を取得します。

String SpeakerName { get; }

プロパティー値

System.String