Received message larger than max error on GRPC , calling audio2face API

huangapple go评论66阅读模式
英文:

Received message larger than max error on GRPC , calling audio2face API

问题

我面临这个问题。我推送到NVIDIA audiotoface的消息大小更大(13417774 vs. 4194304)。

尝试使用push_audio_track和push_audio_track_stream,但错误仍然相同。

任何对此的帮助将不胜感激。

  1. 我尝试通过创建一个最大发送/接收消息长度为无限(-1)的grpc通道来修复它。

但它不起作用。错误中的最大值仍然显示为4194304。我猜这与我创建的通道无关。我需要在grpc服务器端设置这些值吗?我认为是播放器流实例?找不到在audio2face内部设置这些值的地方。

  1. 减小音频大小似乎与此无关。请求消息大小仍然较高。
英文:

I am facing this issue. The message size I am pushing to NVIDIA audiotoface is bigger (13417774 vs. 4194304).

`Message=<_InactiveRpcError of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = “Received message larger than max (13417774 vs. 4194304)”
debug_error_string = "UNKNOWN:Error


push_audio_track

response = stub.PushAudio(request)

push_audio_track(a2f_url, wavarr, sample_rate, a2f_avatar_instance)`

Tried using push_audio_track and push_audio_track_stream as well. Error remains the same.

Any help on this would be much appreciated

  1. I tried fixing it by creating a grpc channel with max send/recieve message length of unlimited (-1)

    `('grpc.max_message_length', -1),

    ('grpc.max_send_message_length', -1),

    ('grpc.max_receive_message_length', -1)`

But it doesnt work. The max in error is still displaying as 4194304. I guess its not related to the channel I am creating at all. I need to set these values at the grpc server side as well ? I think the player streaming instance ? cant find where to set this inside audio2face.

  1. Reducing the audio size seems unrelated. The request message size is till higher

答案1

得分: 0

我已经通过在这里设置grpc.max_message_length = -1来解决了这个问题。

audio2face-2023.1.1\exts\omni.audio2face.player\omni\audio2face\player\scripts\streaming_server\server.py中。

不确定为什么grpc服务器在初始化时使用了默认的4MB grpc消息长度。这将使其不适合发送音频数据。我们是否有办法以压缩格式(mp3)推送音频?

英文:

I have fixed the issue by setting the grpc.max_message_length = -1 in stearming audioplayer server instance here

audio2face-2023.1.1\exts\omni.audio2face.player\omni\audio2face\player\scripts\streaming_server\server.py.

not sure why the grpc.sever as was intialized at 4 mb default grpc.mesage lenght. It would make it unsuitable for sending the audio data. Is there any way we can push the audio in compressed format mp3 ?

huangapple
  • 本文由 发表于 2023年8月11日 00:44:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76877761.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定