Author Topic: tasker  (Read 4481 times)

0 Members and 1 Guest are viewing this topic.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
tasker
« on: May 08, 2016, 02:34:18 AM »
Добрый день есть вопрос:
Я создал в таскере эвент при входящем звонке отправлять эвент в вокс с именем абонента  но получаю знаки  ?????  вместо имени  так как имя на Русском
Возможно как то добавить понимание Русского языка ?
если я правильно понял веб сервер  не может перекодировать полученную информацию
Для примера

vc.triggerevent:incoming??? pfone&&???

Hi I have a question:
I created in Tasker Event for an incoming call to send Event vox with the subscriber's name but got signs ????? instead of the name as the name in Russian
Maybe add something like an understanding of the Russian language?
if I understand correctly the web server can not transcode the information
For example

vc.triggerevent:incoming??? pfone&&???

vc.triggerevent:text&&?????&&hi   ?????==привет
« Last Edit: May 08, 2016, 03:11:37 AM by mr.niki »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: tasker
« Reply #1 on: May 08, 2016, 08:15:12 AM »
Yes, there does appear to be an encoding limitation.

You can use the UDP Sender solution instead of VC's web server.

The UDP Sender Android app is free.

http://voxcommando.com/mediawiki/index.php?title=Using_Tasker_with_VoxCommando#Tasker_and_AutoVoice_as_an_Alternative_to_VoxWav

[Edit: The encoding limitation only exists with post requests on the web server, not regular get requests. TCP plugin version 2.2.0.2. This will likely be fixed in the next release.  The problem Mr.Niki describes above is a Tasker encoding issue.]
« Last Edit: May 08, 2016, 03:15:43 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #2 on: May 08, 2016, 08:32:24 AM »
Your other option is to use English event names.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: tasker
« Reply #3 on: May 08, 2016, 11:42:35 AM »
I use the names in English but peylaud nested values in Russian. It can be seen from the above example. For example, the names of contacts in the Russian and SMS text in Russian. I tried your method and it works thanks.

thanks for the help

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #4 on: May 08, 2016, 03:09:06 PM »
Tasker is not encoding the Russian text correctly when using http get. If you do the same thing using a web browser such as chrome, it works fine.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: tasker
« Reply #5 on: May 08, 2016, 03:21:52 PM »
I tried to do it in the browser; google chrom
http://127.0.0.1:81/html/testpost.html
Action 2     OSD.ShowText&&привет
and I received the same
????????
so I thought at the Web server
but now everything is altered to
UDP Sender
vc.triggerevent&&sms&&%SMSRN&&%SMSRB
and everything works

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #6 on: May 08, 2016, 03:54:46 PM »
I am talking about using http.get not post.  When using Post from a website it is probably not encoding the text correctly either.

If you enter the following into the Chrome web browser address bar it should work because VC's webserver is able to understand the text when it is properly encoded.

Code: [Select]
http://127.0.0.1:####/api/OSD.ShowText&&Это работает
I'm glad that the UDP plugin for Tasker is encoding the text correctly and working for you.
It is easier to use anyway.
 :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #7 on: May 08, 2016, 04:14:34 PM »
Actually the reason the post form does not work is that the html page needs to be adjusted a bit to accept utf8 characters.  It is a small adjustment.

In the file VC\plugins\TCP\html\testpost.html the form can me modified.

Original:
Code: [Select]
<form method="post" action="/form">
Fixed:
Code: [Select]
<form method="post" action="/form" accept-charset="UTF-8">

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: tasker
« Reply #8 on: May 08, 2016, 04:35:03 PM »
your line is running
<form method="post" action="/form" accept-charset="UTF-8">

and possibly add  this
<form method="post" action="/form" accept-charset="UTF-8">
 to  tcp  plug-in?

Sorry for Google translator
« Last Edit: May 08, 2016, 04:44:18 PM by mr.niki »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #9 on: May 08, 2016, 05:02:34 PM »
You can edit the html file yourself.  It is just a text file and I told you the path to the file.
Code: [Select]
VC\plugins\TCP\html\testpost.html
This actually has nothing to do with the plugin.  The plugin does not need anything added or changed.


Since you are using the UDP plugin with Tasker and it is working correctly for you, there is really nothing you need to do.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: tasker
« Reply #10 on: May 08, 2016, 05:21:05 PM »
thanks for the help


you may be interested in this program
This media pleer
and maybe you do when realties plugin for it
http://www.aimp.ru/
« Last Edit: May 08, 2016, 05:28:10 PM by mr.niki »

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: tasker
« Reply #11 on: August 05, 2016, 04:28:19 PM »
Добрый день.
Есть вопрос который я не могу решить.
Есть команда на установку будильника которая  выполняется  если я ее говорю голосом, но
она не корректно выполняется если я ее отправляю из tasker.
Что именно не корректно выполняется :
Если присутствует 0  в отправляемом тексте   к примеру  программа отказывается выполнить команду с такой формулировкой udp://192.168.1.95:33000/vc.tellvox&&установи будильник на 7 часов 0 минут
но если я отдам эту команду голосом то программа ее выполнит.
Но если команда из  tasker не содержит 0 то все выполняется отлично
udp://192.168.1.95:33000/vc.tellvox&&установи будильник на 7 часов 10 минут
подскажите в чем может быть проблема ?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #12 on: August 05, 2016, 06:49:36 PM »
Strange.

It might help if we could look at an actual log.

Please try to test this using the TellVoxCommando program.  You can open it from the "File" menu on the main VC window.  Or you can run "TellVoxCommando.exe" which is in your VC directory.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: tasker
« Reply #13 on: August 06, 2016, 05:34:05 AM »
к сожалению происходит тоже самое и через программу TellVoxCommando
если есть 0  то не срабатывает
так же прилагаю саму команду возможно ошибка в ней
« Last Edit: August 06, 2016, 05:37:41 AM by mr.niki »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: tasker
« Reply #14 on: August 06, 2016, 10:24:57 AM »
There does appear to be an issue with the Microsoft Speech Platform, Russian engine.  It cannot understand '0' during speech recognition emulation (VC.TellVox).

Unfortunately it is not something that I have the power to fix.

The best solution will depend on what you are actually trying to accomplish.

The two possible solutions are:

1) Replace your payloadRanges with a payloadXML (use words for the number phrases and numbers for the values)

2) Use VC.TriggerEvent to trigger the command instead of using speech recognition emulation (VC.TellVox).

How are you using Tasker?  Are you using some kind of Google speech recognition in Tasker, or are you creating commands manually in Tasker and then triggering them with some kind of event or button?
« Last Edit: August 06, 2016, 10:29:21 AM by jitterjames »