GithubHelp home page GithubHelp logo

Comments (11)

xfslove avatar xfslove commented on May 10, 2024

please try with trc iw&en. it seems he no working again.

from alfred-google-translate.

kyrsquir avatar kyrsquir commented on May 10, 2024

Won't work for me. While it is configured to iw or he it behaves as if it encounters an error and crashes internally every time a translation is attempted. It won't show any results even when trying to translate an untranslatable special character like ✟ (which works if set to any other language).

from alfred-google-translate.

xfslove avatar xfslove commented on May 10, 2024

would you please paste the version of the node, alfred, workflow?

and if the workflow shown any errors paste the stack trace too.

from alfred-google-translate.

kyrsquir avatar kyrsquir commented on May 10, 2024

Node 12.13.0
Alfred 4.0.7
Workflow - main 2.0.8 and config 1.0.4

Also noticed that configured language doesn't matter, it crashes on Hebrew words even when other languages are set.

[06:23:54.082] ERROR: Google Translate (no Hebrew)[Script Filter] Code 1: {
	"items": [
		{
			"title": "העדפת",
			"subtitle": "Phonetic: ",
			"quicklookurl": "https://translate.google.com/#view=home&op=translate&sl=iw&tl=en&text=%D7%94%D7%A2%D7%93%D7%A4%D7%AA",
			"arg": "/var/folders/x7/kgxp3j9j5rx70lpkb0ls4jzr0000gn/T/706b175a-fb56-4246-8834-b1c35c9dbc60.mp3",
			"text": {
				"copy": "העדפת",
				"largetype": "העדפת"
			},
			"icon": {
				"path": "tts.png"
			}
		},
		{
			"title": "Preference",
			"subtitle": "Phonetic: ",
			"quicklookurl": "https://translate.google.com/#view=home&op=translate&sl=en&tl=iw&text=Preference",
			"arg": "/var/folders/x7/kgxp3j9j5rx70lpkb0ls4jzr0000gn/T/d2ff3cdc-79ed-4133-a562-a1dae8a6a75e.mp3",
			"text": {
				"copy": "Preference",
				"largetype": "Preference"
			},
			"icon": {
				"path": "tts.png"
			}
		}
	]
}
{
	"items": [
		{
			"title": "HTTPError: Response code 404 (Not Found)\nUrl: https://translate.google.com/translate_tts?client=gtx&tl=iw&ie=UTF-8&idx=0&total=1&textlen=5&q=%D7%94%D7%A2%D7%93%D7%A4%D7%AA&tk=701164.793847\n    at /usr/local/lib/node_modules/alfred-google-translate/node_modules/got/index.js:123:13\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)",
			"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
			"valid": false,
			"text": {
				"copy": "```\nHTTPError: Response code 404 (Not Found)\nUrl: https://translate.google.com/translate_tts?client=gtx&tl=iw&ie=UTF-8&idx=0&total=1&textlen=5&q=%D7%94%D7%A2%D7%93%D7%A4%D7%AA&tk=701164.793847\n    at /usr/local/lib/node_modules/alfred-google-translate/node_modules/got/index.js:123:13\n```\n\n-\nGoogle Translate (no Hebrew) 2.0.8\nAlfred 4.0.7\ndarwin 18.7.0",
				"largetype": "HTTPError: Response code 404 (Not Found)\nUrl: https://translate.google.com/translate_tts?client=gtx&tl=iw&ie=UTF-8&idx=0&total=1&textlen=5&q=%D7%94%D7%A2%D7%93%D7%A4%D7%AA&tk=701164.793847\n    at /usr/local/lib/node_modules/alfred-google-translate/node_modules/got/index.js:123:13"
			},
			"icon": {
				"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
			}
		}
	]
}
[06:23:54.087] ERROR: Google Translate (no Hebrew)[Script Filter] JSON error: Garbage at end. in JSON:
{
	"items": [
		{
			"title": "העדפת",
			"subtitle": "Phonetic: ",
			"quicklookurl": "https://translate.google.com/#view=home&op=translate&sl=iw&tl=en&text=%D7%94%D7%A2%D7%93%D7%A4%D7%AA",
			"arg": "/var/folders/x7/kgxp3j9j5rx70lpkb0ls4jzr0000gn/T/706b175a-fb56-4246-8834-b1c35c9dbc60.mp3",
			"text": {
				"copy": "העדפת",
				"largetype": "העדפת"
			},
			"icon": {
				"path": "tts.png"
			}
		},
		{
			"title": "Preference",
			"subtitle": "Phonetic: ",
			"quicklookurl": "https://translate.google.com/#view=home&op=translate&sl=en&tl=iw&text=Preference",
			"arg": "/var/folders/x7/kgxp3j9j5rx70lpkb0ls4jzr0000gn/T/d2ff3cdc-79ed-4133-a562-a1dae8a6a75e.mp3",
			"text": {
				"copy": "Preference",
				"largetype": "Preference"
			},
			"icon": {
				"path": "tts.png"
			}
		}
	]
}
{
	"items": [
		{
			"title": "HTTPError: Response code 404 (Not Found)\nUrl: https://translate.google.com/translate_tts?client=gtx&tl=iw&ie=UTF-8&idx=0&total=1&textlen=5&q=%D7%94%D7%A2%D7%93%D7%A4%D7%AA&tk=701164.793847\n    at /usr/local/lib/node_modules/alfred-google-translate/node_modules/got/index.js:123:13\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)",
			"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
			"valid": false,
			"text": {
				"copy": "```\nHTTPError: Response code 404 (Not Found)\nUrl: https://translate.google.com/translate_tts?client=gtx&tl=iw&ie=UTF-8&idx=0&total=1&textlen=5&q=%D7%94%D7%A2%D7%93%D7%A4%D7%AA&tk=701164.793847\n    at /usr/local/lib/node_modules/alfred-google-translate/node_modules/got/index.js:123:13\n```\n\n-\nGoogle Translate (no Hebrew) 2.0.8\nAlfred 4.0.7\ndarwin 18.7.0",
				"largetype": "HTTPError: Response code 404 (Not Found)\nUrl: https://translate.google.com/translate_tts?client=gtx&tl=iw&ie=UTF-8&idx=0&total=1&textlen=5&q=%D7%94%D7%A2%D7%93%D7%A4%D7%AA&tk=701164.793847\n    at /usr/local/lib/node_modules/alfred-google-translate/node_modules/got/index.js:123:13"
			},
			"icon": {
				"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
			}
		}
	]
}

from alfred-google-translate.

xfslove avatar xfslove commented on May 10, 2024

I saw that, its the tts problem. I'll take a look.

you could config the voice:none temporarily.

from alfred-google-translate.

kyrsquir avatar kyrsquir commented on May 10, 2024

from alfred-google-translate.

xfslove avatar xfslove commented on May 10, 2024

perhaps no. sorry for that. but I'll fix this as soon as possible.

from alfred-google-translate.

xfslove avatar xfslove commented on May 10, 2024

I found that the Google not support Hebrew voice. look at this:

1

I'll find a way to give tips on workflow.

from alfred-google-translate.

xfslove avatar xfslove commented on May 10, 2024

Remark: I'm not sure which field of response body represents the voice available or not.

from alfred-google-translate.

udiNur avatar udiNur commented on May 10, 2024

there is any update?

from alfred-google-translate.

xfslove avatar xfslove commented on May 10, 2024

there is any update?

Sorry, Not yet.

from alfred-google-translate.

Related Issues (20)

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.