
from Audio.PyMedia.Input import Input
from Audio.PyMedia.Output import Output

from Kamaelia.Chassis.Pipeline import Pipeline

Pipeline( Input(sample_rate=44100, channels=1, format="S16_LE"),
          Output(sample_rate=44100, channels=1, format="U8"),
        ).run()


from Audio.PyMedia.Input import Input
from Audio.PyMedia.Output import Output

from Kamaelia.Chassis.Pipeline import Pipeline

Pipeline( Input(sample_rate=8000, channels=1, format="S16_LE"),
          Output(sample_rate=8000, channels=1, format="S16_LE"),
        ).run()

Fix so both input and output are the same format!
Fix so both input and output are the same format!

Matt

  
  from Audio.PyMedia.Input import Input
  from Audio.PyMedia.Output import Output
  
  from Kamaelia.Chassis.Pipeline import Pipeline
  
- Pipeline( Input(sample_rate=44100, channels=1, format="S16_LE"),
+ Pipeline( Input(sample_rate=8000, channels=1, format="S16_LE"),
-           Output(sample_rate=44100, channels=1, format="U8"),
+           Output(sample_rate=8000, channels=1, format="S16_LE"),
          ).run()
  
Fix so both input and output are the same format!
## Code Before:

from Audio.PyMedia.Input import Input
from Audio.PyMedia.Output import Output

from Kamaelia.Chassis.Pipeline import Pipeline

Pipeline( Input(sample_rate=44100, channels=1, format="S16_LE"),
          Output(sample_rate=44100, channels=1, format="U8"),
        ).run()

## Instruction:
Fix so both input and output are the same format!
## Code After:

from Audio.PyMedia.Input import Input
from Audio.PyMedia.Output import Output

from Kamaelia.Chassis.Pipeline import Pipeline

Pipeline( Input(sample_rate=8000, channels=1, format="S16_LE"),
          Output(sample_rate=8000, channels=1, format="S16_LE"),
        ).run()
