Author Topic: Как настроить отправку сообщений в skype?  (Read 4376 times)

0 Members and 1 Guest are viewing this topic.

RomanSt82

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 2
    • View Profile
Здравствуйте! Собственно вопрос звучит в теме. Как настроить отправку сообщений в skype? т.е. как поместить сказанное мной в тело сообщения? Настроил практически всё кроме этого. Спасибо.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как настроить отправку сообщений в skype?
« Reply #1 on: December 28, 2015, 09:26:07 AM »
Unfortunately, in Russian you will have to use pre-defined phrases, so its functionality will be limited.

However, here are the steps:

1. Generate the Payload XML file with your Skype contact names. (See photo.)
2. Try the following example command.

It uses the Action: Skype.SendText

Copy the code below, and paste it into your VoxCommando command tree:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.3-->
<commandGroup open="True" name="Send message with Skype" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="115" name="Отправить сообщение Skype" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Skype.SendText</cmdType>
      <params>
        <param>{2}</param>
        <param>{1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Отправка {PF.2} сообщение:</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.AddText</cmdType>
      <params>
        <param>{1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Отправить сообщение</phrase>
    <payloadList>Привет,Прощай,Как дела?,Давайте поговорим в 5 минут</payloadList>
    <phrase>с моим другом</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloadSkype.xml</payloadFromXML>
  </command>
</commandGroup>
« Last Edit: December 28, 2015, 09:40:12 AM 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)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как настроить отправку сообщений в skype?
« Reply #2 on: December 28, 2015, 09:31:10 AM »
I made a mistake when I originally posted the XML above. It is now fixed.
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)

RomanSt82

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 2
    • View Profile
Re: Как настроить отправку сообщений в skype?
« Reply #3 on: December 28, 2015, 09:34:10 AM »
Спасибо. Буду пробовать. Тогда ещё один вопрос по теме. Можно ли сперва записать сообщение в файл, а после вставить содержимое файла в тело сообщения?

Thank you. I will try. Then one more question on the topic. Can the first to write a message to a file, and then paste the contents of a file in the message body?

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как настроить отправку сообщений в skype?
« Reply #4 on: December 28, 2015, 09:41:40 AM »
Yes, you can write to a file, and then read the message from a file.

Can you explain more? What is the purpose of the extra step?
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)

RomanSt82

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 2
    • View Profile
Re: Как настроить отправку сообщений в skype?
« Reply #5 on: December 28, 2015, 09:49:04 AM »
Если на русском языке я могу отсылать только предопределённые фразы, то есть идея сперва записать перед отправкой в файл моё голосовое сообщение , а после вставить из файла в тело сообщения в skype?

1) сказать голосом сообщение.
2) записать в файл это сообщение, например в файл message.txt
3) вставить в тело сообщения содержимое из файла message.txt
4) Отправить сообщение.

If in Russian I can only send pre-defined phrase, you first have the idea to write the file before sending it to my voicemail, and then paste the file into the body of messages in skype?
1) to say the voice message.
2) written in the message file, such as file message.txt
3) into the body of the message contents of the file message.txt
4) Send a message.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как настроить отправку сообщений в skype?
« Reply #6 on: December 28, 2015, 10:03:41 AM »
That is interesting. So you can record a voice mail, and it will be automatically transcribed into a text message?

I cannot help with transcribing a voice mail and saving it as a text file. But once the file is created, here is an example of how you can read a text file and send it as a Skype message.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.3-->
<command id="115" name="прочитать файл и отправить текст в Skype" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>File.Read</cmdType>
    <params>
      <param>C:\..Путь к файлу ...\message.txt</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Skype.SendText</cmdType>
    <params>
      <param>{1}</param>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Skype-чат</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloadSkype.xml</payloadFromXML>
</command>
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)

RomanSt82

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 2
    • View Profile
Re: Как настроить отправку сообщений в skype?
« Reply #7 on: December 28, 2015, 10:07:23 AM »
Это то что надо! Огромное спасибо.
И тогда последний вопрос. Как записать в файл сказанное мной?

This is what we need! Thank you so much.
And then the last question. How to write to a file what I said?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Как настроить отправку сообщений в skype?
« Reply #8 on: December 28, 2015, 10:27:55 AM »
The problem is that there is no dictation support for the SP version of VoxCommando because the Microsoft Speech Platform does not support it.  Being able to read and write files does not help you to solve this problem, unless you have some other program that converts your speech to text and put it into a text file.

VoxCommando can only understand what you say if you put all the possible options for what you say into the definition of your command.  You cannot just "say anything".  You can use a payloadXML to create a very large number of possible phrases but you still need to enter them all in advance.

The only way you can "say anything" is if you use a dictation payload, but you can only do this if you are using the regular version of VoxCommando (not SP) with one of the supported languages (English, French, German, Spanish, Chinese, Japanese).
« Last Edit: December 28, 2015, 11:43:03 AM by nime5ter »

RomanSt82

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 2
    • View Profile
Re: Как настроить отправку сообщений в skype?
« Reply #9 on: December 28, 2015, 10:32:52 AM »
Ок. Спасибо за помощь ещё раз.

OK. Thanks for your help again.