I want to transmit real time voice signal recorded by usb MIC through uart using Raspberry pi 3b. But by using USB MIC it is not possible for me to transmit voice to uart directly without storing it. Please tell me how can i directly take the voice data and transmit it through uart.
The code I am using is:
#!/usr/bin/python import os import serial ser=serial.Serial('/dev/ttyS0',19200) os.system("mkfifo audio1.fifo") with open("audio1.fifo") as fifo: audio1.fifo=ser.readline()