Coder Social home page Coder Social logo

Comments (6)

remoremorali avatar remoremorali commented on May 26, 2024

Actually I got it wrong: some messages are ogg and some are m4a but the problem with the encrypted messages is that the content_type is application/octet-stream.
The event mimetype is correct though, so using that one works.

from matrix-stt-bot.

alexander-potemkin avatar alexander-potemkin commented on May 26, 2024

@remoremorali , I'm facing an issue with encrypted audio message not processed at all, so I guess it's exactly the issue you are mentioning.
Did you have a chance to submit a PR? If not, would you mind advising on the code place to make the changes?

from matrix-stt-bot.

alexander-potemkin avatar alexander-potemkin commented on May 26, 2024

I figured out pull request is there and already merged (#3).

@hibobmaster , could you please, help me to understand if encrypted rooms ever worked for you? I have only Element clients and bot just doesn't get triggered on audio messages in encrypted rooms.

I have encryption configured and working, non-encrypted rooms also works fine.

from matrix-stt-bot.

alexander-potemkin avatar alexander-potemkin commented on May 26, 2024

I've changed events to listen to as broad range as possible:

        # setup event callbacks
        self.client.add_event_callback(
            self.message_callback,
            (
                RoomMessageAudio,
                RoomEncryptedAudio,
                RoomMessage,
                RoomMessageUnknown,
                RoomEncryptedMedia,
                UnknownEncryptedEvent,
                Event,
            ),
        )

But it still doesn't work - I'm running the code under the debugger and it just not executing this code for encrypted rooms.

One more thing that concerns me, it's that bot never 'read' those messages - it's like something prevents it from getting those messages ever touch the code.

... and one more thing... it's not only with encrypted channels - it's with any channels, except for default's '#discuss'. The bot joining all those rooms, but never get the messages.

from matrix-stt-bot.

hibobmaster avatar hibobmaster commented on May 26, 2024

@alexander-potemkin You should import E2EE room keys follow the readme.

And here's a guide about how to login via access_token and make it work in E2EE room. #4 (comment)

from matrix-stt-bot.

alexander-potemkin avatar alexander-potemkin commented on May 26, 2024

@hibobmaster , thank you - I've commented on #4 regarding session key.
What confuse me, it's that things doesn't work on un-ecrypted room as well.

from matrix-stt-bot.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.