Fix some bugs

Fix some bugs in windows and add the function for playing voice in
windows