Voice Input on Mac

My game uses voice/sound input as a game mechanic, and I’m struggling to get it to work on my Mac. The question I have is, what is the best way to get realtime sound input in the game? Do I have to roll my own, for each system I want the game to work on?

I’ve done plenty of digging, and got excited when I saw the VoiceCaptureModule. But then taking a look at the VoiceModuleMac.cpp, I see:

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.

#include "VoicePrivatePCH.h"
#include "VoiceCodecOpus.h"
#include "Voice.h"

bool InitVoiceCapture()
{
	return false;
}

void ShutdownVoiceCapture()
{
}

IVoiceCapture* CreateVoiceCaptureObject()
{
	return NULL; 
}

IVoiceEncoder* CreateVoiceEncoderObject()
{
	return NULL; 
}

IVoiceDecoder* CreateVoiceDecoderObject()
{
	return NULL; 
}

Does this mean I can’t use the VoiceModule on a mac? If that’s the case, what should I start looking into to make it work?

Thanks!

The voice module isn’t implemented for OS X yet - this is tracked as [UEPLAT-44]. There’s no ETA for it to be completed for now, so you won’t be able to use voice input on OS X presently.

Alright, well thanks for the response. Could you take a look at so I can try and implement it myself?

I’ve just added a really trivial OpenAL implementation for OS X in Main, CL #2468783, Git: https://github.com/EpicGames/UnrealEngine/commit/7891945d2184f246cc42e3932800933f4740ff7a
It’ll be in the 4.8 binary release, but is very small & could theoretically be spot merged into 4.7 if you are building from source (with the usual caveat that it hasn’t been fully tested yet).

Awesome! thank you