Skip to main content
replaced http://blender.stackexchange.com/ with https://blender.stackexchange.com/
Source Link

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bgeRun an external application with the bge

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

added 6 characters in body
Source Link
ideasman42
  • 48k
  • 10
  • 144
  • 226

You could play a MP3 file using the aud moduleaud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

added sleep / stop
Source Link
stacker
  • 38.9k
  • 31
  • 144
  • 245

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
 
time.sleep(5) # omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
 
time.sleep(5) # omit this to play full sound file
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

You could play a MP3 file using the aud module

import aud
import time

sound = aud.Factory.file(pathToMP3 )
device = aud.device()
handle = device.play(sound)
# omit this to play full sound file
time.sleep(5) 
handle.stop()

Alternatively you could launch any external application as described here: Run an external application with the bge

added sleep / stop
Source Link
stacker
  • 38.9k
  • 31
  • 144
  • 245
Loading
Source Link
stacker
  • 38.9k
  • 31
  • 144
  • 245
Loading