유틸리티
다운로드된 음성 모델 이름 가져오기
모든 다운로드된 음성 모델의 이름을 가져옵니다.
- Blueprint
- C++
TArray<FName> DownloadedVoiceModelNames = URuntimeTTSLibrary::GetDownloadedVoiceModelNames();
이름에서 음성 모델 가져오기
이름에서 음성 모델 객체 가져오기
- Blueprint
- C++
FName VoiceModelName = TEXT("English (United States) - Ryan (High)"); // Assuming this is a valid voice model name
TSoftObjectPtr<URuntimeTTSModel> VoiceModel;
if (URuntimeTTSLibrary::GetVoiceModelFromName(VoiceModelName, VoiceModel))
{
// VoiceModel is now a valid voice model object
}
모델에서 음성 메타데이터 가져오기
특정 음성 모델의 메타데이터 가져오기
- Blueprint
- C++
URuntimeTTSModel* VoiceModel; // Assuming this is a valid voice model object
FTTSVoiceMetadata VoiceMetadata;
if (URuntimeTTSLibrary::GetVoiceMetadataFromModel(VoiceModel, VoiceMetadata))
{
// VoiceMetadata is now populated with the metadata of the voice model
}
이름으로 음성 메타데이터 가져오기
음성 모델의 메타데이터를 이름으로 가져오기
- Blueprint
- C++
FName VoiceModelName = TEXT("English (United States) - Ryan (High)");
FTTSVoiceMetadata VoiceMetadata;
if (URuntimeTTSLibrary::GetVoiceMetadataFromName(VoiceModelName, VoiceMetadata))
{
// VoiceMetadata is now populated with the metadata of the voice model
}
메타데이터에서 음성 모델 이름 가져오기
음성 메타데이터를 해당 모델 이름으로 변환
- Blueprint
- C++
FTTSVoiceMetadata VoiceMetadata; // Assuming this is a populated voice metadata struct
FName VoiceModelName;
if (URuntimeTTSLibrary::GetVoiceModelNameFromMetadata(VoiceMetadata, VoiceModelName))
{
// VoiceModelName is now populated with the name of the voice model
}
음성 모델에서 스피커 수 얻기
음성 모델에 사용할 수 있는 스피커 수를 가져오기
- Blueprint
- C++
URuntimeTTSModel* VoiceModel; // Assuming this is a valid voice model object
int32 NumOfSpeakers;
if (URuntimeTTSLibrary::GetSpeakerCountFromVoiceModel(VoiceModel, NumOfSpeakers))
{
// NumOfSpeakers is now populated with the number of speakers in the voice model
}
모델 이름에서 스피커 수 얻기
음성 모델의 이름을 사용하여 사용 가능한 스피커 수를 가져오기
- Blueprint
- C++
FName VoiceModelName = TEXT("English (United States) - Ryan (High)");
int32 NumOfSpeakers;
if (URuntimeTTSLibrary::GetSpeakerCountFromModelName(VoiceModelName, NumOfSpeakers))
{
// NumOfSpeakers is now populated with the number of speakers in the voice model
}