[Tweak] TTS perfomance + 7 new voices (#143)

* [Tweak] TTS perfomance

* Added 7 new voices

* Comment ddr2
This commit is contained in:
HitPanda
2023-06-18 22:07:52 +03:00
committed by Aviu00
parent 184cd637f4
commit 9a1db8d551
4 changed files with 57 additions and 7 deletions

View File

@@ -115,7 +115,7 @@ public sealed class TTSSystem : EntitySystem
private bool TryCreateAudioSource(byte[] data, [NotNullWhen(true)] out IAudioSource? source)
{
var dataStream = new MemoryStream(data) { Position = 0 };
var audioStream = _audioSystem.LoadAudioWav(dataStream);
var audioStream = _audioSystem.LoadAudioOggVorbis(dataStream);
source = _audioSystem.CreateAudioSource(audioStream);
if (source == null)
{