Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Received ConversationTranslator.participantsChanged Event but ConversationParticipantsChangedEventArgs.participants is empty when Android targetSdkVersion is upper than 29 #2687

Open
Zhangbao-Yan opened this issue Dec 3, 2024 · 3 comments

Comments

@Zhangbao-Yan
Copy link

Zhangbao-Yan commented Dec 3, 2024

val conv = Conversation.createConversationAsync(SpeechTranslationConfig.fromAuthorizationToken(...)).get()
conv.startConversationAsync().get()
val convTranslator = ConversationTranslator(AudioConfig.fromDefaultMicrophoneInput())
convTranslator.participantsChanged.addEventListener(EventHandler { _: Any?, e: ConversationParticipantsChangedEventArgs ->
            Log.d("speeck sdk","participantsChanged::participants=${e.participants}")
        })
convTranslator.joinConversationAsync(conv, "randomUserName").get()
  • Additional information as shown below
    Tested Speech SDK 1.25.0, 1.38.0, 1.41.1, the bug can reproduce once bump Android targetSdkVersion upper than 29.

Describe the bug
When I bump Android targetSdkVersion from 29 to 34, the participantsChanged event received empty participants, and it's only happened on my physical devices (LG V60 ThinQ 5G_Android12 & Pixel 6a 5G_Android13), the x86_64 emulator (Android 12, 13, 14) worked fine.

To Reproduce

Steps to reproduce the behavior:

  1. Internet connectivity should be available.
  2. Create a new conversation succeed and get the conversationId correctly.
  3. Create a new ConversationTranslator and add participantsChanged event listener.
  4. Join the Conversation.

Expected behavior

There has at least one participant data when received the participantsChanged event.

Version of the Cognitive Services Speech SDK: 1.41.1
Which version of the SDK are you using.

compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 29

Platform, Operating System, and Programming Language

  • OS: Android 12 & 13
  • Hardware: arm64-v8a
  • Programming language: Kotlin
Copy link

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label Dec 23, 2024
@xitzhang
Copy link

xitzhang commented Jan 6, 2025

Hi @Zhangbao-Yan ,
Double confirm the repro steps of physical machine: you connected physical devices to android studio, debug and found it cannot work, is it correct? or you didn't connect devices to android studio?

@github-actions github-actions bot removed the update needed For items that are in progress but have not been updated label Jan 7, 2025
@xitzhang
Copy link

xitzhang commented Jan 8, 2025

@Zhangbao-Yan , I can repro issue. Debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants