Afspelen laadt de ingesloten YouTube-speler (privacyvriendelijke modus).
Hoe je audiobestanden afspeelt in Python met playsound
KanaalRishabh NarayanBeschrijving van de maker
Hoi allemaal,
In deze video laat ik je zien hoe je audiobestanden in Python kunt afspelen, zoals .mp3- of .wav-bestanden. Ik gebruik daarvoor het module *playsound*. Installeer het met Command Prompt of Windows PowerShell door *pip install playsound* in te typen.
Code:
from playsound import playsound
playsound('\/pad\/naar\/je\/audiobestand\/dat\/je\/wilt\/afspelen.mp3')
Gebruikte editor: Visual Studio Code
In deze video laat ik je zien hoe je audiobestanden in Python kunt afspelen, zoals .mp3- of .wav-bestanden. Ik gebruik daarvoor het module *playsound*. Installeer het met Command Prompt of Windows PowerShell door *pip install playsound* in te typen.
Code:
from playsound import playsound
playsound('\/pad\/naar\/je\/audiobestand\/dat\/je\/wilt\/afspelen.mp3')
Gebruikte editor: Visual Studio Code
Over deze tutorial
Rishabh Narayan publiceerde deze videotutorial van 4:50 op 28 april 2020. Hij is 201.182 keer bekeken op YouTube.
- Kanaal
- Rishabh Narayan
- Categorie
- Wetenschap & technologie
- Duur
- 4:50
- Gepubliceerd
- 28 april 2020
- Weergaven
- 201.182
- Likes
- 2.313
Delen
Deze tutorial in andere talen
- ENHow to Play Audio Files in Python : playsound Module
- FRComment lire les fichiers audio en Python: playsound Module
- ESCómo reproducir archivos de audio en Python: Módulo tocarsonido
- PTComo reproduzir arquivos de áudio em Python: PlaySound Module
- ITCome per riprodurre file audio in Python: PlaySound Module
- DEWie man spielt Audio-Dateien in Python: Playsound Module
- RUКак играть аудио файлов в Python: PlaySound модуль
- PLJak odtwarzać pliki audio w Pythonie: playsound Module
- JAPythonでオーディオファイルを再生する方法:playsoundモジュールを
- ARكيفية تشغيل ملفات الصوت في بيثون: playsound الوحدة
- HIकैसे पायथन में ऑडियो फ़ाइलें खेलने के लिए: playsound मॉड्यूल
- IDCara Bermain Musik dengan Python: PlaySound Modul