当我尝试遵循this aws real time streaming example的示例时
为什么我得到以下错误
/usr/local/include/aws/transcribestreaming/model/AudioStream.h:47:36: error: calling 'Jsonize' with incomplete return type 'Aws::Utils::Json::JsonValue'
msg.WriteEventPayload(value.Jsonize().View().WriteCompact());
~~~~~~^~~~~~~~~
/usr/local/include/aws/transcribestreaming/model/ConfigurationEvent.h:40:68: note: 'Jsonize' declared here
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
^
/usr/local/include/aws/transcribestreaming/model/PostCallAnalyticsSettings.h:18:9: note: forward declaration of 'Aws::Utils::Json::JsonValue'
class JsonValue;
^
In file included from audiopa.cpp:4:
/usr/local/include/aws/transcribestreaming/model/AudioStream.h:47:45: error: member access into incomplete type 'Aws::Utils::Json::JsonValue'
msg.WriteEventPayload(value.Jsonize().View().WriteCompact());
^
/usr/local/include/aws/transcribestreaming/model/PostCallAnalyticsSettings.h:18:9: note: forward declaration of 'Aws::Utils::Json::JsonValue'
class JsonValue;
我真的不知道为什么会发生这种情况,因为我只是按照所给的例子,这个问题发生,即使我只有
#include <aws/transcribestreaming/model/AudioStream.h>
1条答案
按热度按时间dm7nw8vv1#
尝试使用Github repo中的代码,而不是博客代码。https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/cpp/example_code/transcribe