Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop_speaking_async does not work #19757

Closed
oliverguhr opened this issue Jul 12, 2021 · 3 comments
Closed

stop_speaking_async does not work #19757

oliverguhr opened this issue Jul 12, 2021 · 3 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library. Cognitive - Speech customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@oliverguhr
Copy link

  • Package Name: azure-cognitiveservices-speech
  • Package Version: 1.17.0
  • Operating System: Linux
  • Python Version: Python 3.8.10

Describe the bug
The stop_speaking_async (and stop_speaking) do not stop the audio output as described in the documentation

To Reproduce
Steps to reproduce the behavior:

  1. replace your API credentials
  2. run this code
import time
from azure.cognitiveservices.speech import AudioDataStream, SpeechConfig, SpeechSynthesizer, SpeechSynthesisOutputFormat
from azure.cognitiveservices.speech.audio import AudioOutputConfig


def main():
    speech_config = SpeechConfig(subscription="", region="")
    audio_config = AudioOutputConfig(use_default_speaker=True)
    synthesizer = SpeechSynthesizer(speech_config=speech_config, audio_config=audio_config)
    print("speak")
    text = "This is a very very very very very very very very very very very very very very very very long text."
    _ = synthesizer.start_speaking_text_async(text)
    print("sleep")
    time.sleep(1)
    print("stop")
    _ = synthesizer.stop_speaking_async()
    print("done")
   

main()

Expected behavior
The method stop_speaking_async should stop the audio output.

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 12, 2021
@xiangyan99 xiangyan99 added bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library. Service Attention Workflow: This issue is responsible by Azure service team. labels Jul 12, 2021
@xiangyan99
Copy link
Member

Thanks for the feedback, we’ll investigate asap.

@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jul 12, 2021
@xiangyan99 xiangyan99 added Cognitive - Speech and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 12, 2021
@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label May 20, 2022
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Aug 19, 2022
dev-Sentinel-2022-08-01 (Azure#20290)

* Adds base for updating Microsoft.SecurityInsights from version stable/2021-10-01 to version 2022-08-01

* Updates readme

* Updates API version in new specs and examples

* Add MITRE support to alert rules models (Azure#19757)

* Update version

* Fix lint diff error

Co-authored-by: Lilyan Cohen <licohen@microsoft.com>

Co-authored-by: lilyanc02 <46589651+lilyanc02@users.noreply.github.com>
Co-authored-by: Lilyan Cohen <licohen@microsoft.com>
@yulin-li
Copy link
Contributor

yulin-li commented Oct 8, 2022

@oliverguhr, thank you for reporting this issue, and I can repro it. We will fix this.

@yulin-li
Copy link
Contributor

yulin-li commented Oct 8, 2022

Closing this issue and tracking it in Azure-Samples/cognitive-services-speech-sdk#1686

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Client This issue points to a problem in the data-plane of the library. Cognitive - Speech customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants