Skip to content

Commit 59d8d43

Browse files
committed
Add content-length manually to microsoft request
1 parent 768804c commit 59d8d43

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/tts-providers/microsoft.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ function microsoft(phrase, voiceName) {
8383
'X-Microsoft-OutputFormat': 'riff-16khz-16bit-mono-pcm',
8484
'X-Search-AppId': APP_ID,
8585
'X-Search-ClientID': INSTANCE_ID,
86-
'User-Agent': 'node-sonos-http-api'
86+
'User-Agent': 'node-sonos-http-api',
87+
'Content-Length': ssml.length
8788
},
8889
body: ssml
8990
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sonos-http-api",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "A simple node app for controlling a Sonos system with basic HTTP requests",
55
"scripts": {
66
"start": "node server.js"

0 commit comments

Comments
 (0)