Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Voice to Text
Started by Scott Harrison Oct 17 2016 09:45 AM

106 replies to this topic
[TOPIC CONTROLS]
Page 1 of 5 1 2 3 »
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Voice to Text

 

View and activate on the Corona Store

This plugin allows you to covert speech to text using the build in iOS and Android apis, so you don't have to pay any hosting fees. Please see docs for more details.

Documentation



[TOPIC: post.html]
#2

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

note docs have changed to https://scotth.tech/plugin-voiceToText



[TOPIC: post.html]
#3

andrea_corte

[GLOBAL: userInfoPane.html]
andrea_corte
  • Enthusiast

  • 36 posts
  • Corona SDK

Good morning
I purchased the plugin
but I can not use it, I tried to see the attached example but I could not.
you can have a practical example of basis?
Yours sincerely


[TOPIC: post.html]
#4

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

It should work, what is console/logs saying



[TOPIC: post.html]
#5

andrea_corte

[GLOBAL: userInfoPane.html]
andrea_corte
  • Enthusiast

  • 36 posts
  • Corona SDK

On my simulator it is not possible to test the app, so I'm using an phone android 6. I could not figure out how to use the plugin. the example of the pebble attached speaks plugin not the voice to text. will definitely my mistake. I hope you manage to help me maybe with 2 lines basic program.

Yours sincerely



[TOPIC: post.html]
#6

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

I see wrong link, here is link will update docs

https://github.com/scottrules44/voiceToText-Demo

[TOPIC: post.html]
#7

andrea_corte

[GLOBAL: userInfoPane.html]
andrea_corte
  • Enthusiast

  • 36 posts
  • Corona SDK

I thank you for the quick reply.
I downloaded the demo project from the link you sent me, the app installs without errors, but when I start the Start button and speak not hear my voice.
I did tests on a phone Galaxy S5 and Galaxy S3 Mini.
Yours sincerely


[TOPIC: post.html]
#8

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

What are logs saying?

[TOPIC: post.html]
#9

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Also what version iOS or android? What version of iOS or android? Please still make sure you post logs.

[TOPIC: post.html]
#10

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

On iOS please make sure your Xcode, macOS operating system, and corona simulator to the lastest verison. Please note as stated in documentation this only work with iOS 10+. Please still send me all the info above.

[TOPIC: post.html]
#11

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Tested sample raw from GitHub without any edits on Samsung galaxy note 3

https://www.dropbox.com/s/fc6msdn1vqlfuxm/IMG_0545.JPG?dl=0



[TOPIC: post.html]
#12

andrea_corte

[GLOBAL: userInfoPane.html]
andrea_corte
  • Enthusiast

  • 36 posts
  • Corona SDK

good morning
I did some tests with the app attached.
samsung galaxy ace 4 everything works correctly
with a samsung galaxy s5 the app is installed but does not work the audio recorder.
I solved the problem by forcing the code at the beginning of the program:
 
local filePath = system.pathForFile( "newRecording.aif", system.DocumentsDirectory )
r = media.newRecording( filePath )
r:startRecording()
 
and creating a function that locks the audio recording:
r:stopRecording()
 
 
in this way the app works correctly on samsung galaxy s5.
 
Tomorrow I will try to test it also on IOS
 
samsung galaxy s5 = Android 6.0.1
samsung galaxy ace = 4 Android 4.4.4
 
Yours sincerely


[TOPIC: post.html]
#13

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

It is probably a permission thing with marshmallow

[TOPIC: post.html]
#14

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

updated sample https://github.com/scottrules44/voiceToText-Demo



[TOPIC: post.html]
#15

rafael.rpadovani

[GLOBAL: userInfoPane.html]
rafael.rpadovani
  • Observer

  • 3 posts
  • Corona SDK

Scott what is the minimum corona version required?



[TOPIC: post.html]
#16

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

I would use one that is compatible with iOS 10( note you also need lastest version of Xcode), on android it should not matter as long as it is compatible with plugins.

[TOPIC: post.html]
#17

Trung Kien Tran

[GLOBAL: userInfoPane.html]
Trung Kien Tran
  • Enthusiast

  • 60 posts
  • Corona SDK

Hi Scott,

I see this error in your sample. Please help me!

 

Screen%20Shot%202016-12-23%20at%2015.59.



[TOPIC: post.html]
#18

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Hi Scott,

I see this error in your sample. Please help me!

 

Screen%20Shot%202016-12-23%20at%2015.59.

You must be running an older version of Xcode, please update to the latest version



[TOPIC: post.html]
#19

wegas

[GLOBAL: userInfoPane.html]
wegas
  • Observer

  • 1 posts
  • Corona SDK

Hello everyone,
 
i've just download and activate the plugin but the simulator says with voiceToText-Demo:
 
11:53:55.892  ERROR: Runtime error
11:53:55.892  module 'plugin_voiceToText' not found:
11:53:55.892   no field package.preload['plugin_voiceToText']
 
please help!!


[TOPIC: post.html]
#20

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,788 posts
  • Enterprise

This is a problem our Engineers are looking in to.  Please stay tuned.

 

Rob



[TOPIC: post.html]
#21

dev179

[GLOBAL: userInfoPane.html]
dev179
  • Observer

  • 6 posts
  • Corona SDK

Hello Scott,
 
I bought the plugin and I'm using it in a project, it's very good, congratulations!
 
But I have the following difficulty:
 
I created 2 buttons 1 that starts = voiceToText.startRecording () and the other button is to stop = voiceToText.stopRecording ().
 
The 2 buttons work very well, however I need to add an audio when I start the recording and another when I stop, type when I send an audio in whatsapp (when I click on the microphone it gives a "signal" informing that it is recording).
 
I'm using audio.play for this situation, on the start button it works perfectly, however on the stop button it does not work, I believe it's because of voiceToText.init, after it is initialized I can not emit any sound through the application .
 
My question is, is there any parameter to quit voiceToText.init when I click the pause button? Or do you have any other way?
 
Thank for your attention.


[TOPIC: post.html]
#22

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

I will look into it, are you saying you cannot play audio when after the "stopped" event of the recording. Also is this android or iOS?

[TOPIC: post.html]
#23

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Also can you please email or post a sample of this issue?



[TOPIC: post.html]
#24

dev179

[GLOBAL: userInfoPane.html]
dev179
  • Observer

  • 6 posts
  • Corona SDK

Hi Scott,
 
At this point I'm just testing on iOS.
 
I'll email the sample.


[TOPIC: post.html]
#25

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

pushed update to fix audio bug, please play audio when there is a "stopped" event in init, not when you stop recording. 




[topic_controls]
Page 1 of 5 1 2 3 »
 
[/topic_controls]