-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running from Python script! #48
Comments
Managed to call main.send function from Python script when saving to file, but couldn't get to work it when there is no output -o specified. The problem is how to specify dst variable when sending data without output ? What to give as an argument for FileType('wb', interface_factory)() ? Exception: (-10000, b'PortAudio not initialized')
|
I can't understand how to use this with a personalized app. I will try debug to discover and maybe create a simple methods to send and receive data like a python socket |
Can someone show a short example how to run this from Python? I want to use this from Python script - function send and recv respectivelly ?
from amodem import config
from amodem import audio
from amodem import main
configuaration = config.Configuration()
interface = audio.Interface(configuration)
audio_library = "../../libportaudio64bit.dll"
interface.load(audio_library)
#src =
#dst =
main.send(config, src, dst, gain=1.0, extra_silence=0.0)
The text was updated successfully, but these errors were encountered: