See Say - Picture to Speech

See Say - Picture to Speech

$4.02

(5 stars)

(111)


Download for Android

10 - 50 downloads

Add this app to your lists
An app for android that takes a picture, and speaks the text aloud:) A tool for the visually impaired, or just for the curious.

I was inspired by a Ted Talk that mentioned that not too long ago, this technology was available for around $10,000.00, for the visually impaired. Technology has come so far that I am able to write this app and release it for under five bucks :)

----------------------------------------------------------
For those so inclined to write code, here's the See Say app code, if you would prefer to write it and compile it yourself:)

Here's the code, enjoy!!!

#image2speech.py

import httplib, mimetypes, android

def post_multipart(host, selector, fields, files):
content_type, body = encode_multipart_formdata(fields, files)
h = httplib.HTTP(host)
h.putrequest('POST', selector)
h.putheader('content-type', content_type)
h.putheader('content-length', str(len(body)))
h.endheaders()
h.send(body)
errcode, errmsg, headers = h.getreply()
return h.file.read()

def encode_multipart_formdata(fields, files):
BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$'
CRLF = '\r\n'
L = []
for (key, value) in fields:
L.append('--' + BOUNDARY)
L.append('Content-Disposition: form-data; name="%s"' % key)
L.append('')
L.append(value)
for (key, filename, value) in files:
L.append('--' + BOUNDARY)
L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
L.append('Content-Type: %s' % get_content_type(filename))
L.append('')
L.append(value)
L.append('--' + BOUNDARY + '--')
L.append('')
body = CRLF.join(L)
content_type = 'multipart/form-data; boundary=%s' % BOUNDARY
return content_type, body

def get_content_type(filename):
return mimetypes.guess_type(filename)[0] or 'application/octet-stream'

droid=android.Android()

im2cote=open('/sdcard/textfile.txt','w')
im2cote.write('- SaySee - by Dave Cote - info@davecote.com -')
im2cote.close()
droid.webViewShow('file:///sdcard/textfile.txt')
droid.setMediaVolume(10)
droid.ttsSpeak('please tilt your camera to the left, and take the picture in the horizontal land scape style')

droid.cameraInteractiveCapturePicture('/sdcard/jpeg.jpg')
droid.setMediaVolume(5)
droid.generateDtmfTones('398457394572979475',1)
droid.setMediaVolume(10)
droid.dialogCreateSpinnerProgress('Sending Image to Cloud','Please Wait')
droid.dialogShow()

#send pic to cloud:
host=' ... ' #

selector=' ... ' #
fields=[('outputencoding','utf-8'),('outputformat','txt')]
with open('/sdcard/jpeg.jpg','rb') as jpeg:
files=[('userfile','jpeg.jpg', jpeg.read())]
response=post_multipart(host,selector,fields,files)
#remove garbage chars:
def removeNonAscii(s): return "".join(filter(lambda x: ord(x)<128, s))
removeNonAscii(response)
stringList='`~^*()_-|\\}]{["\'\:;/<>'
for x in range(0,20):
response=response.replace(stringList[x],'')
webtxt=open('/sdcard/text2speech.txt','wb')
webtxt.write(response)
webtxt.write('- SeeSay - by Dave Cote - info@davecote.com -')
webtxt.close()
droid.webViewShow('file:///sdcard/text2speech.txt')
droid.ttsSpeak(response)

Tags: webviewshow, picture of speech form, اندروید say picture, see say picture to speech, free see say picture to speech, picturetospeech tutorials, picture to speech, picture content to speech, code image to speech.

Recently changed in this version

Full App, everything now installs for you. No need to get the interpreter separately, simply install and read!

Now supports Android 1.6 onwards:)


Screenshots See Say - Picture to Speech
View bigger - See Say - Picture to Speech for Android screenshot
View bigger - See Say - Picture to Speech for Android screenshot
Comments and ratings for See Say - Picture to Speech

  • There aren't any comments yet, be the first to comment!