Develop a language translation tool in Python that can accurately recognize and translate text and speech from any language to any other language in real-time, using advanced natural language processing techniques and machine learning algorithms. The tool should have a user-friendly interface, support multiple input and output formats, and be capable of handling various accents and dialects. Additionally, it should be able to apply context-based translations and retain the original meaning and tone of the source text. Finally, the tool should be scalable, reliable, and able to work offline or online with minimal latency.
user