Improve voice upload

This commit is contained in:
Karlatemp 2020-12-28 17:44:19 +08:00
parent 1600a76aa3
commit dca1eab5a5
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -219,8 +219,7 @@ internal object HighwayHelper {
parameter("bmd5", resource.md5.toUHexString(""))
parameter("mType", "pttDu")
parameter("voice_encodec", resource.voiceCodec)
body = resource.inputStream().withUse { readBytes() }
// body = resource.inputStream().consumeAsWriteChannelContent(null)
body = resource.consumeAsWriteChannelContent(null)
}
}
}