Skip to content

fix readme example print py3 grammar error - #38

Open
YLD10 wants to merge 1 commit into
acrcloud:masterfrom
YLD10:patch_readme
Open

fix readme example print py3 grammar error#38
YLD10 wants to merge 1 commit into
acrcloud:masterfrom
YLD10:patch_readme

Conversation

@YLD10

Copy link
Copy Markdown

Using Python3 will result in an error message.
image

Comment threadREADME.md

#recognize by file path, and skip 0 seconds from from the beginning of sys.argv[1].
printre.recognize_by_file(sys.argv[1], 0)
print(re.recognize_by_file(sys.argv[1], 0))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(re.recognize_by_file(sys.argv[1], 0))
print(re.recognize_by_file(sys.argv[1], 0))

Comment threadREADME.md
buf = open(sys.argv[1], 'rb').read()
#recognize by file_audio_buffer that read from file path, and skip 0 seconds from from the beginning of sys.argv[1].
printre.recognize_by_filebuffer(buf, 0)
print(re.recognize_by_filebuffer(buf, 0))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(re.recognize_by_filebuffer(buf, 0))
print(re.recognize_by_filebuffer(buf, 0))

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@YLD10@iamankun