Sphinx-UE4: Speech Recognition Plugin [Release v1.0]

Hi all!

I managed to get this to compile in 4.26.

However,

it seems that setting up the config… doesn’t seem to work.

ps_init seems to fail creating a ps_decoder_t pointer when ingesting it with the config parameters.

uint32 FSpeechRecognitionWorker::Run() {

	bool initComplete = false;
	while (StopTaskCounter.GetValue() == 0) {

		// loop until we have initialised 
		if (initRequired) {

			if(config)
				ps = ps_init(config); // this fails when applying a config. ps is always null. config is not

			if (!Manager | !ps) {
				ClientMessage(FString(TEXT("Speech Recognition Thread failed to start")));
				return 1;
			}

...

Here’s the order of the blueprint initialization of the SpeechRecognizerActor when setting up the config stuff

Any thoughts on what I’m missing would be excellent :frowning:

1 Like