Popular posts from this blog
Java program to solve Sudoko problem
Hi All, we know Sudoku is a famous game or brain twister to time pass or improve your logical skills. So thing is that what if some one ask to solve Sudoku in seconds ? or if you are a programmer what if some one ask you to write Sudoku program ? Here is the solution for that. For Quick inputing purpose am just initializing matrix on program(hard coding) instead of taking inputs from standard io or command line. public class Sudoku { public static void main(String[] args) { int[][] matrix = {{0, 4, 3, 7, 0, 0, 9, 0, 8}, {0, 0, 5, 0, 3, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0, 3, 0, 0}, {6, 0, 0, 0, 2, 7, 0, 0, 0}, {4, 0, 7, 0, 0, 0, 1, 0, 3}, {0, 0, 0, 5, 4, 0, 0, 0, 9}, {0, 0, 2, 0, 0, 0, 0, 3, 0}, {0, 0, 0, 0, 5, 0, 4, 0, 0}, {5, 0, 4, 0, 0, 1, 2, 6, 0}}; myWriteMat(matrix); solve(0, 0, matrix); myWriteMat(matrix); } static void myWriteMat(int matrix[][]) { int n = (matrix.length * 3) - 2; for (int i = 0; i < matrix.length; i++) ...
Speech Recognition Library for java
Hi, We have seen Google's Assistant and IOS's siri and JARVIS etc. these AIs' are not single functionality to achieve easily. we need to recognize speech and act based on that and speaking text to out. So many things needed to achieve these. In that Taking input from user also major role i.e Speech Recognition So this post is showing how to code Speech recognition in java, i have searched many sites to find the library for this. finally i found Sphinx4 library for java which is open source. i couldn't wait to implement this, so started coding. if your not going in-depth its all about few lines of code to recognize your voice. i just want to show the code as simple as possible. Previous version of Sphinx we used to write dictionary to recognize. In '.gram' file we were giving words to recognize these called voice tokens. But now we have tokens ready wi...

Comments
Post a Comment