Questions tagged [deepl]

DeepL is a translation engine that also offers an API for integration into any program.

DeepL is a free translation engine that also offers a paid API named DeepL Pro for integration into any program. It provides measurably better results than Google, Microsoft and others.

59 questions
18
votes
3 answers

Using DeepL API to translate text

Is there any possibility to find out if the DeepL translator offers an API for the translation? Unfortunately I haven't found any information on this. Would like to implement this to an Excel script for auto translation. I've already tried it with…
dontbyteme
  • 1,221
  • 1
  • 11
  • 23
9
votes
5 answers

How to make a python request to deepL API?

I'm trying to make a python script for making translations with the DeepL API. I've tried to make a request but it responses a HTTP error 400 (Bad request). Here is the code of my script where I replaced the real authentication key with XXX: import…
Luca Guidotto
  • 101
  • 1
  • 2
7
votes
2 answers

how to solve module 'gym.wrappers' has no attribute 'Monitor'?

import gym if __name__ == "__main__": env = gym.make("CartPole-v0") env = gym.wrappers.Monitor(env, "recording") total_reward = 0.0 total_steps = 0 obs = env.reset() while True: action = env.action_space.sample() …
learner
  • 111
  • 1
  • 1
  • 8
3
votes
3 answers

How do I set the origin in the DeepL API on javascript?

What else should I try? I'm currently sending a request to the DeepL API in axios, but I'm getting a 403 response due to a CORS issue. And tried to set the option using querystring as shown here, but it didn't work.…
Yoshi
  • 31
  • 2
3
votes
1 answer

How to request a translation from deepl at the moment?

Since DeepL updated their API which also their website (https://www.deepl.com/translator) uses, an error appears when you're requesting a translation via Java or Python. It says "Too many requests." A year ago the answer here (Using DeepL API to…
Celsius
  • 104
  • 1
  • 9
3
votes
1 answer

Python: Having trouble replacing lines from file

I'm trying to build a translator using deepl for subtitles but it isn't running perfectly. I managed to translate the subtitles and most of the part I'm having problems replacing the lines. I can see that the lines are translated because it prints…
MatejMecka
  • 1,448
  • 2
  • 24
  • 37
2
votes
1 answer

What happens if the 500,000 characters in the DeepL API Free plan are exceeded?

I understand that with a DeepL API Free plan the user can request translation of 500,000 characters a month for free. With the API Pro plan, an unlimited amount of characters can be translated; this requires paying a monthly subscription fee as well…
waldrumpus
  • 2,540
  • 18
  • 44
2
votes
1 answer

Combining lines in a txt file to complete phrases

File content as follows (it's a part of video subtitles). I want to combine lines to complete phrases. 1 00:00:00,000 --> 00:00:13,680 Je vais mettre en direct sur l'hôtel comme ça on peut regarder les messages et tout. 2 00:00:13,680 -->…
Ömer Work
  • 23
  • 4
2
votes
1 answer

Test DeepL api from localhost

I'm trying to test the DeepL API on my local machine but I'm getting this error in PHP : DeepL\ConnectionException: SSL certificate problem: self signed certificate in certificate chain. My code is simple :
2
votes
1 answer

How to parse answers with deepl api?

I want to use deepl translate api for my university project, but I can't parse it. I want to use it wit PHP or with Python, because the argument I'll pass to a python script so it's indifferent to me which will be the end. I tried in php like…
alma korte
  • 135
  • 7
2
votes
1 answer

Send POST request with PHP

For a translation tool i want to use, i need to send my requests per POST. I never done anything like this, and the documentation doesnt mean much to me (it isn't php specific documentation, and not sure how to implement this in php) The example in…
Phpnewb
  • 127
  • 1
  • 9
2
votes
1 answer

Accessing DeepL alternate translations

After hours of messing around with the DeepL API and HTTP, I finally managed to get a JSON response object for translation, but it contains only one translation in the JSON. However, when I use the DeepL desktop application, and I enter a sentence…
ByteCarp
  • 41
  • 6
2
votes
1 answer

requests equivalent to cURL returning error

I am trying to use the DeepL API. In the documentation they speak of a cURL command like so: curl https://api.deepl.com/v2/document \ -F "file=@mydoc.docx" \ -F "auth_key=" \ -F "target_lang=DE" which I converted to…
Bram Vanroy
  • 27,032
  • 24
  • 137
  • 239
1
vote
0 answers

Deepl API reponse untranslated

I'm trying to use DeepL API to translate some text files. When I make a request with a text file that has fewer than 3 words, the API response is correct and it gives me back the translated text file. However, when I try to do the same thing with a…
1
vote
1 answer

speech_recognition and DeepL - try to translator with speech to text

I am a complete beginner I am trying to send a text via voice input using DeepL API and see the translation as output. Speech to text works, but it throws an error when executing the translator.translate_text_deepl(). main.py import…
1
2 3 4