Discussion:
[Tutor] Help
Shannon Callahan
2015-08-09 22:14:38 UTC
Permalink
To anybody,

I am new to this with so small experiences. I am struggle to get around
with python's install that connect with Mac's terminal. Basically, I am
trying to make a codes into sd card for raspberry pi to have it detect
specific sound then it ring that al.

Any idea?


Shannon
SDSU Graduate Student

"Disability was not an outcome of bodily pathology, but of social
organization: it was socially produced by systematic patterns of exclusion
that were - quite literally - built into the social fabric." (Hughes &
Paterson 1997).
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Steven D'Aprano
2015-08-10 01:45:00 UTC
Permalink
Hi Shannon, and welcome,
Post by Shannon Callahan
To anybody,
I am new to this with so small experiences. I am struggle to get around
with python's install that connect with Mac's terminal. Basically, I am
trying to make a codes into sd card for raspberry pi to have it detect
specific sound then it ring that al.
Any idea?
I'm sorry, I have no idea what you are asking for.

Are you having problems installing Python on a Macintosh?

Are you trying to write code for a Raspberry Pi, to have it detect a
specific sound? To have it detect *any* sound is one thing, to have it
detect a specific sound is much, much, much harder, and will probably
require specialised knowledge that you are unlikely to learn here.

I don't understand your reference to an SD card. Is your problem that
you don't know how to copy files to an SD card?

And I am afraid I have no idea what you mean by "then it ring that al".
Ring that "all" perhaps? All what?

Can you please explain, carefully and in detail:

- what you are trying to do;
- what you have done so far;
- what result you hope to get;
- the actual result you have got.

It will help if you also show the code you have written so far.
--
Steve
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Shannon Callahan
2015-08-10 02:10:35 UTC
Permalink
Sorry for my lack of clear explanation. Yes, I am having problem to install
python into my mac laptop.

-I am trying to install python into my mac laptop
-I am trying to learn how to execute the possible finished code
-I am trying to create a code so I can transfer it into SD card so I can
put it into raspberry pi.
-I am trying to have it able to hear like three specific commands such as
"hey, hello, sir".
-I am trying to execute the code that able to make a connect between
raspberry pi to breadboard to ringer component.

To answer your questions;
- what you are trying to do; mimic sound detector from specific trigger
words
- what you have done so far; Struggle to download python and create code
- what result you hope to get; able to make code to execute detect trigger
words that cause a ring.
- the actual result you have got.; none.

Shannon
SDSU Graduate Student

"Disability was not an outcome of bodily pathology, but of social
organization: it was socially produced by systematic patterns of exclusion
that were - quite literally - built into the social fabric." (Hughes &
Paterson 1997).
Post by Steven D'Aprano
Hi Shannon, and welcome,
Post by Shannon Callahan
To anybody,
I am new to this with so small experiences. I am struggle to get around
with python's install that connect with Mac's terminal. Basically, I am
trying to make a codes into sd card for raspberry pi to have it detect
specific sound then it ring that al.
Any idea?
I'm sorry, I have no idea what you are asking for.
Are you having problems installing Python on a Macintosh?
Are you trying to write code for a Raspberry Pi, to have it detect a
specific sound? To have it detect *any* sound is one thing, to have it
detect a specific sound is much, much, much harder, and will probably
require specialised knowledge that you are unlikely to learn here.
I don't understand your reference to an SD card. Is your problem that
you don't know how to copy files to an SD card?
And I am afraid I have no idea what you mean by "then it ring that al".
Ring that "all" perhaps? All what?
- what you are trying to do;
- what you have done so far;
- what result you hope to get;
- the actual result you have got.
It will help if you also show the code you have written so far.
--
Steve
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Cameron Simpson
2015-08-10 11:10:31 UTC
Permalink
Post by Shannon Callahan
Sorry for my lack of clear explanation. Yes, I am having problem to install
python into my mac laptop.
-I am trying to install python into my mac laptop
Macs normally ship with Python installed already, version 2.7.

If you need a specific version, for example Python 3, you can fetch installers
for the current versions here:

3.4.3: https://www.python.org/downloads/release/python-343/
2.7.10: https://www.python.org/downloads/release/python-2710/
Post by Shannon Callahan
-I am trying to learn how to execute the possible finished code
Generally you execute python code from the command line by handing it the
filename or module name, eg:

python filename.py
python -m module.name
Post by Shannon Callahan
-I am trying to create a code so I can transfer it into SD card so I can
put it into raspberry pi.
You will need a text editor. There are any number of things.

Regarding the transfer, your raspberry should have an ethernet socket. You'll
need to plug it into your network. Then you can scp the files to the raspberry
without mucking around with SD cards.
Post by Shannon Callahan
-I am trying to have it able to hear like three specific commands such as
"hey, hello, sir".
-I am trying to execute the code that able to make a connect between
raspberry pi to breadboard to ringer component.
I cannot help you with these. What degree of programming knowledge or
experience do you have?
Post by Shannon Callahan
To answer your questions;
- what you are trying to do; mimic sound detector from specific trigger
words
- what you have done so far; Struggle to download python and create code
Download links above. You will have to pick an editor. The Mac offers the
textedit app and the usual command line based editors. Make sure you're using a
text editor, which makes plain text files. Not a word processor.
Post by Shannon Callahan
- what result you hope to get; able to make code to execute detect trigger
words that cause a ring.
- the actual result you have got.; none.
Start by making sure you have a working Python. Write an utterly trivial Python
program and run it. For example, make a file "foo.py" containing:

print("Hello world!")

and run it:

python foo.py

Cheers,
Cameron Simpson <***@zip.com.au>
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-08-10 17:07:47 UTC
Permalink
Post by Shannon Callahan
-I am trying to have it able to hear like three specific commands such as
"hey, hello, sir".
That's a very ambitious target for someone who is new to Python.

In fact that's quite an ambitious plan even for someone
experienced in Python - unless you have some kind of powerful
speech recognition platform/library already available to you.
Do you?

Just setting expectations. You likely have a long way to travel.
That's not to say don't go there, just be aware it may take a bit
longer than you hoped.

PS.
What is SDSU?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Laura Creighton
2015-08-10 17:49:14 UTC
Permalink
Shannon Callahan, I found this blog post:
https://wolfpaulus.com/jounal/embedded/raspberrypi2-sr/

Looks like this person is using CMUs Sphinx to do the speech recognition
stuff. Maybe this is what you are looking for?

Laura

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-08-10 18:04:16 UTC
Permalink
Forwarding to list for completeness.
Please use reply All when responding to the list.
So it is really hard to make such code for it?
It's hard for a beginner.
It's non-trivial for an expert.

But there are libraries such as Google's speech to text library
(as used in their search pages etc). There is a page on it here:

https://pypi.python.org/pypi/SpeechRecognition/

But as you'll see it requires several other packages as well and
of course you need a network connection to Google as well as
a Google programmers account. Nothing impossible but a lot
of work just to get started.

There are other libraries. I've not used any of them.
But for a starter project it is bigger than I'd usually recommend.

Since you are on a Mac you might have access to the MacOS
speech libraries,. but they won't port to your Raspberry Pi where
the Google one should work anywhere with a network connection..
What about jasper program for speech recognition for offline.
Never heard of it...
OK, That looks like somebody has done the really hard stuff for you.
It seems so use Google, amongst other things under the covers.

So I take it back, you might be able to use that easily enough. :-)

The tricky bit is probably going to be detecting/handling errors
in a sensible way..
Sorry, SDSU-San Diego State University.
Ah, I'm UK based so didn't recognize it. I assumed it was a subject
like CS (Comp Sc)...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-08-10 18:41:32 UTC
Permalink
Telling me about it...being kook for beginner.
The first thing you should do is focus on getting Python onto your Mac and
going through a basic tutorial. If you've programmed before in another
language then you can use the official tutorial on pyhon.org.

If not then try a non-programmers intro such as mine (see sig and do the
first 2 sections.) Or any of the others listed here:

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Once you can write basic Python programs you can go through the
tutorial on the Jasper site:

http://jasperproject.github.io/documentation/api/standard/

Which shows that you can use Jasper from within Python.
You will need to install Jasper first - I'm not clear yet whether that's
a Pi
only thing or if it works on the Mac...

But you must learn basic Python before you can do much of anything
so far as I can tell. That's where the tutor list comes in - we exist to
answer questions on learning the core Python language.

Once you get into Jasper you may have to start asking on the
Jasper support forum as well.

https://groups.google.com/forum/#!forum/jasper-support-forum
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Emile van Sebille
2015-08-10 18:13:16 UTC
Permalink
Post by Alan Gauld
PS.
What is SDSU?
San Diego State University I'd guess.

Emile

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alex Kleider
2015-08-10 18:40:59 UTC
Permalink
Post by Emile van Sebille
Post by Alan Gauld
PS.
What is SDSU?
San Diego State University I'd guess.
Emile
South Dakota State is the other possibility.
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Cameron Simpson
2015-08-10 23:07:08 UTC
Permalink
Post by Alex Kleider
Post by Emile van Sebille
Post by Alan Gauld
PS.
What is SDSU?
San Diego State University I'd guess.
Emile
South Dakota State is the other possibility.
They seem to addreviate to sdstate. At least as a domain name, while San Diego
State University actually uses sdsu. Maybe the race _is_ always to the swift.

Cheers,
Cameron Simpson <***@zip.com.au>

Airplanes are interesting toys but of no military value.
--Marechal Ferdinand Foch, Professor of Strategy, Ecole
Superieure de Guerre.
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Cameron Simpson
2015-08-10 23:04:49 UTC
Permalink
Post by Alan Gauld
PS.
What is SDSU?
Google told me San Diego State University.

Cheers,
Cameron Simpson <***@zip.com.au>

To be positive: To be mistaken at the top of one's voice.
Ambrose Bierce (1842-1914), U.S. author. The Devil's Dictionary (1881-1906).
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Continue reading on narkive:
Loading...