Posts

Showing posts from July, 2017

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...

How to update yi 4k firmware?

Image
Hi All,           Many of you were wandering to see how to update YI 4K action camera firmware. Here is the answer for your problem. You require internet access to download firmware and any mobile with yi app. Step 1: connect your camera to yi app and come back to connect again before connect you'll find link saying new firmware available click on that to download Step 2: then connect your camera to app again and so it'll prompt to update new firmware click on that             It takes few min, and that's it your camera will update firmware automatically and restart itself. On starting it will show on screen instructions and it'll show updated version. i have made video on this you can check below.

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++) ...