luapower / objc

Objective-C & Cocoa Bridge
http://luapower.com/objc
25 stars 7 forks source link

Pass a phoneme callback to NSSpeechSynthesizer #8

Open TheQuinbox opened 1 year ago

TheQuinbox commented 1 year ago

When using this module with NSSpeechSynthesizer, STDERR gets spammed with the following:

NSSpeechSynthesizer: [NSSpeechSynthesizer _setupCallbacks] - NSSpeechSynthesizer: Error setting soPhonemeCallBack

I bleieve the syntax of the function you want is:

function speechSynthesizer_willSpeakPhoneme_(synth, phoneme)
  return
end

This fixed it in a Python project, at least.