Fixed voice code to work with ace editor