Exemplo n.º 1
0
nsresult
nsSpeechTask::DispatchStartInner()
{
  CreateAudioChannelAgent();

  nsSynthVoiceRegistry::GetInstance()->SetIsSpeaking(true);
  return DispatchStartImpl();
}
Exemplo n.º 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();
}
Exemplo n.º 3
0
nsresult
nsSpeechTask::DispatchStartImpl()
{
  return DispatchStartImpl(mChosenVoiceURI);
}
Exemplo n.º 4
0
nsresult
nsSpeechTask::DispatchStartInner()
{
    nsSynthVoiceRegistry::GetInstance()->SetIsSpeaking(true);
    return DispatchStartImpl();
}