Re: kAudioDevicePropertyHogMode and NSSpeechSynthesizer...
Re: kAudioDevicePropertyHogMode and NSSpeechSynthesizer...
- Subject: Re: kAudioDevicePropertyHogMode and NSSpeechSynthesizer...
- From: Jeff Moore <email@hidden>
- Date: Thu, 03 Jun 2010 18:02:51 -0700
I don't know a whole lot about NSSpeechSynthesizer. If it has a facility to tell it what audio device to use, then you might be able to work around the issue that way.
But to turn things on their heads, why do you need hog mode for your app? Hog mode is a really unfriendly thing to assert on the system. As such, it should only be used in circumstances where it is essential like sending non-mixable data (such as AC-3) to the hardware. The vast majority of apps are best off pretending like hog mode doesn't exist.
--
Jeff Moore
Core Audio
Apple
On Jun 3, 2010, at 5:56 PM, charlie wrote:
>
> To be clear, when I say it's "working perfectly", I mean that other apps stop emitting sound after I gain exclusive control of the output device and then resume emitting sound again after I relinquish exclusive control.
>
> The only sound my app will be generating is NSSpeechSynthesizer text-to-speech.
>
> Do I need to tell NSSpeechSynthesizer that we're in exclusive output mode somehow? Do I need to "select" the output device somehow after entering exclusive mode for that device?
>
> Thanks.
>
> Chuck
>
>
>
>
>
> On June 3, 2010 08:45:51 P.M. EDT, charlie <email@hidden> wrote:
>
>> I can obtain and relinquish exclusive control of the built-in output device using kAudioDevicePropertyHogMode. This works perfectly.
>> But, after obtaining exclusive control of the built-in output device, NSSpeechSynthesizer does not work (from within the same app/pid).
>> Anyone know how I can get NSSpeechSynthesizer to work while in exclusive output mode?
>> Thanks.
>> Chuck
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Coreaudio-api mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden