예제 #1
0
nsresult
nsSpeechTask::DispatchStartInner()
{
  CreateAudioChannelAgent();

  nsSynthVoiceRegistry::GetInstance()->SetIsSpeaking(true);
  return DispatchStartImpl();
}
예제 #2
0
NS_IMETHODIMP
nsSpeechTask::DispatchStart()
{
  if (!mIndirectAudio) {
    NS_WARNING("Can't call DispatchStart() from a direct audio speech service");
    return NS_ERROR_FAILURE;
  }

  return DispatchStartImpl();
}
예제 #3
0
nsresult
nsSpeechTask::DispatchStartImpl()
{
  return DispatchStartImpl(mChosenVoiceURI);
}
예제 #4
0
nsresult
nsSpeechTask::DispatchStartInner()
{
    nsSynthVoiceRegistry::GetInstance()->SetIsSpeaking(true);
    return DispatchStartImpl();
}