[Python] Playing sound in Google Colab

Discussão em 'Python' iniciado por Stack, Setembro 1, 2025.

  1. Stack

    Stack Membro Participativo

    Hi so i have code which gives the answer in form of speech. I am using this code:

    audio.save("audio.wav")
    sound_file = '/content/audio.wav'
    Audio(sound_file, autoplay=True)


    Now the code plays file all well but if I play in a separate cell. But if I put this code in between my code, it doesn't work. Any ideas?

    Continue reading...

Compartilhe esta Página