Dienstprogramme
Heruntergeladene Sprachmodellnamen abrufen
Namen aller heruntergeladenen Sprachmodelle abrufen
- Blueprint
- C++
TArray<FName> DownloadedVoiceModelNames = URuntimeTTSLibrary::GetDownloadedVoiceModelNames();
Get Voice Model From Name
Ermittelt ein Voice-Model-Objekt anhand seines Namens
- 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
}
Hole Sprach-Metadaten vom Modell
Hole 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
}
Sprachmetadaten anhand des Namens abrufen
Ruft Metadaten für ein Sprachmodell anhand seines Namens ab
- 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
}
Sprachmodellnamen aus Metadaten abrufen
Konvertiert Sprachmetadaten in den entsprechenden Modellnamen
- 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 abrufen
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
}
Sprecheranzahl 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
}