Skip to content

Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: Error loading file. ) #90

Answered by AmarTrivedi1
AmarTrivedi1 asked this question in Q&A
Discussion options

You must be logged in to vote

The sample scene seems to run with no issues.

I noticed you used audioSource.PlayOneShot(), and so I changed the end of my AIUser function to this:

// Text to speech- I accidently named this function SpeechToText. Will need to fix this, but inform others to change their function name in their scripts.
    public async void SpeechToText(string text)
    {
        AudioClip clip;

        if (characterData.usingOnlineTTS == false)
        {
            clip = await AIManager.Instance.GetTextToSpeech(text, characterData.speakerID);
        }
        else
        {
            clip = await AIManager.Instance.GetElevenLabsAudioClip(text, characterData.elevenLabsModelID);
        }

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by StephenHodgson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #89 on August 26, 2024 20:41.