Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to calculate Signal-to-noise ratio and vocal amplitude from wav file? #10

Open
ilaer opened this issue Jun 14, 2022 · 0 comments
Open

Comments

@ilaer
Copy link

ilaer commented Jun 14, 2022

i need to read wav file , calclate Signal-to-noise ratio and vocal amplitude .
my ConvertToDecibel code:


func ConvertToDecibel(arr int) float64 {
	ref := 1.0
	if arr != 0 {
		lgData := math.Log10(math.Abs(float64(arr)) / ref)
		return lgData * 20
	} else {
		return -60.0
	}

}

can you show your code about it?

@ilaer ilaer changed the title how to calculate Signal-to-noise ratio and vocal amplitude from wav file how to calculate Signal-to-noise ratio and vocal amplitude from wav file? Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant