this is Python 3.x compatible too.)
#
# These two imports NOT needed for this quick demo.
# import sys
# import os
def main():
global record
record=""
# Record from my Laptop`s, Notebook`s and Netbook`s mic.
# Note sample rate unknown at the moment, (8KHz?).
# Shout into the internal mic` for test purposes.
audio=file('/dev/audio', 'rb')
record=audio.read(65536)
audio.close()
# Playback from the sound card(s).
audio=file('/dev/audio', 'wb')
audio.write(record)
audio.close()
main()
# End of record/playback DEMO.
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
sted, all in standard
Python text mode... ;)
And again thanks for the reply...
Rigging for silent running...
CYA...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python
, 45, 15, 3, 0, 3)])
> or even shorter, as a string constant:
> sine = '\x0f-?-\x0f\x03\x00\x03'
Now show your code to a 10 year old and see if he understands it...
Anyhow, thanks for the reply...
CYA...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
port as it came out of.
# myportnumber = raw_input("ENTER the number ONLY of your adaptor and
press RETURN:- ")
# Now set up the port to RAW and say 1200 bps.
# NOTE:- The whitespaces must be adhered to.
os.system("MODE COM"+myportnumber+": BAUD=1200 PAR
...
should also read:-
myportnumber = raw_input(
Sorry about that chap...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
...
Great reply, one of the best I`ve read on any ML/Forum I frequent...
Do I have your permission to quote your reply intact in threads where the
patent, etc,
issues arise, and they often do on other sites.
TIA...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecrac
ons about the use of free
> software are somewhat hilarious.
It would be mighty interesting to know what you have done for the FOSS community
as a whole without want of monetary payment and/or recognition.
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
ht
lling click on anything.
> What the world needs is a virus that silently removes Javascript and Flash
> from browsers...
Hmmm, now wouldn't that be fun... >;)
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/sea
single line ability
sometimes.
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
mory
from the MMUs point of view?
TIA...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
n in a subshell.
> I'd start with either using ctypes/libffi or writing my own C extension
> wrapper around your good.
Hmm, I was hoping to stay inside a standard Python install.
Thanks a lot...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
ht
by "into Python".
Someone else understood immediately but maybe for pedanticheads like you
I should have written "Python script".
Anyhow "no it can't be done" would have been quite sufficient.
I am silent on this now as the previous poster already
about heart transplants.
He he, I've already said my piece to Steven and will remain silent after this
reply
to you...
Cheers...
Off air now...
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mike
essing... ;oD
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
co.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
...
"Hmm, I was hoping to stay inside a standard Python install."
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.aminet.net/search?readme=wisecracker
http://mikeos.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
hecked on a current machine and current
Python install...
###
global somestring
somestring = " "
while 1:
#print somestring
somestring = somestring + " "
###
--
73...
Bazza, G0LCU...
Team AMIGA...
http://homepages.tesco.net/wisecracker/
http://main.ami
18 matches
Mail list logo