Skip to content

Commit

Permalink
fix get voice failed
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt committed Oct 21, 2024
1 parent 591ee29 commit 0506c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/communicate/communicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func makeHeaders() http.Header {
header.Set("Origin", "chrome-extension://jdiccldimpdaibmpdkjnbmckianbfold")
header.Set("Accept-Encoding", "gzip, deflate, br")
header.Set("Accept-Language", "en-US,en;q=0.9")
header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.41")
header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0")
return header
}

Expand Down
2 changes: 1 addition & 1 deletion voiceManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func makeVoiceListRequestHeader() http.Header {
header.Set("Authority", "speech.platform.bing.com")
header.Set("Sec-CH-UA", `" Not;A Brand";v="99", "Microsoft Edge";v="91", "Chromium";v="91"`)
header.Set("Sec-CH-UA-Mobile", "?0")
header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.41")
header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36(KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0")
header.Set("Sec-Fetch-Site", "none")
header.Set("Sec-Fetch-Mode", "cors")
header.Set("Sec-Fetch-Dest", "empty")
Expand Down

0 comments on commit 0506c06

Please sign in to comment.