How to insert sound in python

Code examples

6
0

Play sound in python

import winsound

winsound.PlaySound('sound.wav', winsound.SND_FILENAME)
2
0

how to get sound in python

#if on windows
import winsound
2
0

Play sound in python

import winsound

winsound.PlaySound('sound.wav', winsound.SND_FILENAME)
1
0

how to insert sound in python

from playsound import playsound
playsound('audio _file _place/file name')

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................