Hilfsprogramme
Heruntergeladene Sprachmodellnamen abrufen
Ruft die Namen aller heruntergeladenen Sprachmodelle ab
- Blueprint
- C++
TArray<FName> DownloadedVoiceModelNames = URuntimeTTSLibrary::GetDownloadedVoiceModelNames();
Stimme Modell anhand des Namens abrufen
Ein Stimmenmodell-Objekt anhand seines Namens abrufen
- 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
}
Holen Sie sich Metadaten von einem Sprachmodell
Holen Sie sich Metadaten für ein bestimmtes Sprachmodell
- 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
}
Abrufen von Voice-Metadaten anhand des Namens
Holen Sie sich Metadaten für ein Sprachmodell mithilfe seines Namens
- 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
}
Ermittle Voice-Modellnamen aus Metadaten
Wandle Voice-Metadaten in den entsprechenden Modellnamen um
- 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
}
Anzahl der Sprecher aus Sprachmodell ermitteln
Ermittelt die Anzahl der verfügbaren Sprecher in einem Sprachmodell
- 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
}
Anzahl der Sprecher anhand des Modellnamens ermitteln
Ermittelt die Anzahl der verfügbaren Sprecher in einem Sprachmodell anhand seines Namens
- 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
}