I made a voice recognition rtm tool. Instead of crypting it and keeping it for myself I figured I will give it to the community and see what cool things everyone can make out of it! The codes relatively simple to change so i doubt ill explain how to add functions, though i shall leave a couple functions such as connect and attach in.
speech synths are the things that make your computer talk to you when something is activated (ex a button being pressed) sSynth.SpeakAsync("This is an example");
when you code a string name in the e results you must define it (as shown below).
Heres the codes
Things being used // NOTE: make sure that you add system.speech as a reference for this project.
Your welcome to change things as its free to use, just give credits for the skeleton to me
speech synths are the things that make your computer talk to you when something is activated (ex a button being pressed) sSynth.SpeakAsync("This is an example");
when you code a string name in the e results you must define it (as shown below).
Heres the codes
Things being used // NOTE: make sure that you add system.speech as a reference for this project.
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Speech.Synthesis;
using System.Speech.Recognition;
using System.Threading;
using DevComponents.DotNetBar;
using PS3Lib;
Code:
namespace Chibi_V3
{
public partial class Form1 : DevComponents.DotNetBar.Metro.MetroForm
{
public static uint ProcessID; //tmapi connect and attach
public static uint[] processIDs;
public static string snresult;
private static string usage;
public static string Info;
public static PS3TMAPI.ConnectStatus connectStatus;
public static string Status;
public static string MemStatus;
SpeechSynthesizer sSynth = new SpeechSynthesizer(); ///Builds the engine & defines function names
PromptBuilder pBuilder = new PromptBuilder();
SpeechRecognitionEngine sRecognize = new SpeechRecognitionEngine();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void start_Click(object sender, EventArgs e)
{
logs.Text += ("Voice Recognition Session Has Started") + Environment.NewLine;
sSynth.SpeakAsync("Voice Recognition Session Has Started!"); ///combo box text
stop.Enabled = true;
start.Enabled = false;
Choices sList = new Choices(); ///strings for functions, examples are precoded
sList.Add(new string[] { "test", "help", "connect and attach playstation", "connect xbox", "close chibi"});
Grammar gr = new Grammar(new GrammarBuilder(sList));
try
{
sRecognize.RequestRecognizerUpdate();
sRecognize.LoadGrammar(gr);
sRecognize.SpeechRecognized += sRecognize_SpeechRecognized;
sRecognize.SetInputToDefaultAudioDevice();
sRecognize.RecognizeAsync(RecognizeMode.Multiple);
sRecognize.Recognize();
}
catch
{
return;
}
}
private void sRecognize_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
if (e.Result.Text == "test")
{
sSynth.SpeakAsync("Shiro Is Love" + sSynth.SpeakAsync("Shiro Is Life"));
logs.Text += ("Your a faggot") + Environment.MachineName + Environment.NewLine;
}
if (e.Result.Text == "connect and attach playstation")
{
logs.Text = ("Attempting to connect PS3...") + Environment.NewLine;
PS3TMAPI.InitTargetComms();
PS3TMAPI.Connect(0, null);
PS3TMAPI.GetProcessList(0, out processIDs);
ulong uProcess = processIDs[0];
ProcessID = Convert.ToUInt32(uProcess);
PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
PS3TMAPI.ProcessContinue(0, ProcessID);
logs.Text = ("PS3 Connection Status: Success! Happy Modding") + Environment.NewLine;
MessageBox.Show("PS3 and Game Has been Attached, Happy Modding! | Visit www.icarusmodding.com for the latest in cids, modding, and gaming news!", "Game Connected and attached");
sSynth.SpeakAsync("PS3 successfully connected. Happy modding" + Environment.MachineName);
}
else
{
sSynth.SpeakAsync("Something has gone wrong" + Environment.MachineName);
MessageBoxEx.Show("Somethings gone wrong, Check your connections and try again! " + "\n" + "If this problem continues conntact Shiro at www.icarusmodding.com", "An Error Has Occured");
logs.Text = ("PS3 Connection Status: Failed!");
}
if (e.Result.Text == "connect xbox")
{
Jtag.Connect();
logs.Text += ("Attempting to connect JTag...") + Environment.NewLine;
if (Jtag.activeConnection)
{
System.Windows.Forms.MessageBox.Show("Connection Successful!", "Connection Established");
Jtag.Notify(XRPC.XNotiyLogo.ACHIEVEMENT_UNLOCKED, "Chibi 0.1 Connected!");
sSynth.SpeakAsync("Jtag successfully connected. Happy modding");
logs.Text = ("Jtag Connection Status: Success! Happy Modding!") + Environment.MachineName;
}
else
{
System.Windows.Forms.MessageBox.Show("Please check your Plugins and Try Again", "An Error Has Occured");
sSynth.SpeakAsync("An Error has occured. Check your plugins and try again.");
logs.Text += ("Jtag Connection Status: Failed!") + Environment.MachineName;
}
}
if (e.Result.Text == "close chibi")
{
this.Hide();
MessageBox.Show("thank you so much for helping me test chibi!", "Thank you");
sSynth.SpeakAsync("thanks for helping me grow");
}
if (e.Result.Text == "help")
{
logs.Text += "Heres a List Of The Commands in alpha 0.01" + Environment.NewLine + "test | help | connect and attach playstation | connect xbox | close chibi";
}
}
private void button2_Click(object sender, EventArgs e)
{
sRecognize.RecognizeAsyncStop();
stop.Enabled = false;
start.Enabled = true;
logs.Text += ("Voice Recognition Session Has Ended") + Environment.NewLine;
sSynth.SpeakAsync("Voice Recogniton session has ended");
}
private void button4_Click(object sender, EventArgs e)
{
logs.Text += ("Clicked 'Credits' button!") + Environment.NewLine;
logs.Text += ("///////////CREDITS///////////" + "\n" + "Snipars - Testing" + Environment.NewLine + "HashMods - Testing") + Environment.NewLine;
MessageBox.Show("Shiro Inu - Coding" + "\n" + "WeTheCrunchies A.K.A Snipars - Testing" + "\n" + "HashMods - Testing", "Credits go to the following people");
sSynth.SpeakAsync("Credits go to the following people. Shiro Inu for coding voice engine. Snipars for testing. Hashmods for Testing");
}
private void button3_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("http://icarusmodding.com");
logs.Text += ("Clicked 'Visit Icarus' button! | Thank you!") + Environment.NewLine;
}
private void logs_TextChanged(object sender, EventArgs e)
{
}
}
}
Your welcome to change things as its free to use, just give credits for the skeleton to me
