ubuntu下有没有能用C/C++语言实现texttospeech功能的代码?

ubuntu下有没有能用C/C++语言实现texttospeech功能的代码,现在想实现文字转语言的功能,找了很多资料都没有对应环境下的办法,在ubuntu系统环境下用C/C++实现,求全网大神告知指点!!!

1个回答

yl24242
yl24242 这个博客我有测试过,在ubuntu系统下运行的时候,会提示no text-to-speech plug-ins were found,您还有其他的办法吗?
8 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
ubuntu下有没有能用C/C++语言实现texttospeech功能的代码?

ubuntu下有没有能用C/C++语言实现texttospeech功能的代码,现在想实现文字转语言的功能,找了很多资料都没有对应环境下的办法,在ubuntu系统环境下用C/C++实现,求全网大神告知指点!!!

各位大神大仙快来帮帮小弟吧,是个关于TextToSpeech播放文本的问题

公司需求做语音播报,我用了android 的 TextToSpeech 中的 speak(text, queueMode, params); 方法,效果是实现了,可是偶尔会播不出来,概率性的,不知道是什么原因啊!后来看到这个方法是过时的。还有个同名的方法 public int speak(final CharSequence text, final int queueMode, final Bundle params, final String utteranceId); 可是不知到这个方法的后两个参数都是怎么给的,请路过的大神帮帮忙

Android 9.0网络适配。一加5T9.0系统闪退,其他9.0并没有。

这个项目是公司的一个很老的项目 用eclipse写的,我按照9.0适配守则进行了适配发现部门手机还存在闪退,当我关闭网络的时候就不闪退了。 下面是报错的日志方便大佬们检查我把图片和文字复制了 03-06 15:17:52.097 16529-16914/net.beijing.qixiaomi.agent E/.qixiaomi.agen: Maybe bug 77342775, looking for Lorg/apache/http/HttpResponse; 0x16663768[continuous;main space (region space)] defined in /system/framework/org.apache.http.legacy.boot.jar/0xe4023c00 with loader: dalvik.system.PathClassLoader/0xe4020110[hit:continuous;main space (region space)](/system/framework/org.apache.http.legacy.boot.jar/0xe4023c00:/data/app/net.beijing.qixiaomi.agent-fJVmZaTt3mjrvEuRZuFmTQ==/base.apk/0xdc27aba0);dalvik.system.DexClassLoader/0xe347dd00(/data/user/0/net.beijing.qixiaomi.agent/app_push_lib/plugin-deploy.jar/0xe4023650:/system/framework/org.apache.http.legacy.boot.jar/0xe40244c0);java.lang.BootClassLoader/0xe401ec70 in interface table for Lorg/apache/http/message/BasicHttpResponse; 0x16f4f698[continuous;main space (region space)] defined in /system/framework/org.apache.http.legacy.boot.jar/0xe40244c0 ifcount=2 with loader dalvik.system.DexClassLoader/0xe347dd00[hit:continuous;main space (region space)](/data/user/0/net.beijing.qixiaomi.agent/app_push_lib/plugin-deploy.jar/0xe4023650:/system/framework/org.apache.http.legacy.boot.jar/0xe40244c0);java.lang.BootClassLoader/0xe401ec70 iface #0: org.apache.http.HttpMessage iface #1: org.apache.http.HttpResponse descriptor match in dalvik.system.DexClassLoader/0xe347dd00[hit:continuous;main space (region space)](/data/user/0/net.beijing.qixiaomi.agent/app_push_lib/plugin-deploy.jar/0xe4023650:/system/framework/org.apache.http.legacy.boot.jar/0xe40244c0);java.lang.BootClassLoader/0xe401ec70 match? false![图片说明](https://img-ask.csdn.net/upload/201903/06/1551866020_918052.png)

android TTS 安装语言

我想在 Android 4 设备上使用别的语言。 int value = tts.setLanguage(Locale.JAPANESE); 但是值是 -2。 我用下面的代码检查: protected void check(int requestCode, int resultCode, Intent data) { if (requestCode == 0) { switch (resultCode) { case TextToSpeech.Engine.CHECK_VOICE_DATA_PASS: tts = new TextToSpeech(this, this); break; case TextToSpeech.Engine.CHECK_VOICE_DATA_BAD_DATA: case TextToSpeech.Engine.CHECK_VOICE_DATA_MISSING_DATA: case TextToSpeech.Engine.CHECK_VOICE_DATA_MISSING_VOLUME: Intent installIntent = new Intent(); installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA); startActivity(installIntent); break; case TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL: default: Log.e(TAG, "Got a failure. TTS not available"); } } } 我想安装设备中没有的语言,但是程序崩溃了。如何实现?

点击播放网站上的Google Text to Speech Api

<div class="post-text" itemprop="text"> <p>i have this paragraph</p> <blockquote> <p>A tattoo of angel wings on the back of the young girl pointed officers to a runaway, a 15-year-old school girl called Tina Fontaine. Within days Tina's case was making headlines throughout Canada not just for the horrific nature of her death, but for what she had come to represent.</p> </blockquote> <p>and want to play it <strong>on my website on click</strong> ! so far this is my best code, they say it cant handle more than 100 characters.</p> <pre><code>var audio = new Audio(); audio.src ='http://translate.google.com/translate_tts?ie=utf-8&amp;tl=en&amp;q=Hello%20World.'; audio.play(); </code></pre> <p>Any suggesions ? using only jquery / Javascript / PHP Thankyou</p> </div>

BroadcastReceiver 呼叫服务只循环一次

下面是我的 tts 服务代码: public class SMSTTSService extends Service implements TextToSpeech.OnInitListener, OnUtteranceCompletedListener { private TextToSpeech tts; private String spokenText; @Override public void onCreate() { tts = new TextToSpeech(this, this); } @Override public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { int result = tts.setLanguage(Locale.ENGLISH); // tts.setPitch(5); // set pitch level // tts.setSpeechRate(2); // set speech speed rate if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) { Log.e("TTS", "Language is not supported"); } else { speakOut(spokenText); } /*if (result != TextToSpeech.LANG_MISSING_DATA && result != TextToSpeech.LANG_NOT_SUPPORTED) { tts.speak(c, TextToSpeech.QUEUE_FLUSH, null); }*/ } else { Log.e("TTS", "Initilization Failed"); } } private void speakOut(String text) { tts.speak(text, TextToSpeech.QUEUE_FLUSH, null); } @Override public void onUtteranceCompleted(String uttId) { stopSelf(); } @Override public void onDestroy() { if (tts != null) { tts.stop(); tts.shutdown(); } super.onDestroy(); } @Override public IBinder onBind(Intent intent) { return null; } @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); spokenText = intent.getStringExtra("spoken_txt"); } } 从接收器中调用服务器: public class Receiver extends BroadcastReceiver { private static final String TAG = "SMSReceiver"; @Override public void onReceive(Context context, Intent intent) { for(int i=0; i<msgs.length; i++) { .... Intent intentTTS = new Intent(context, SMSTTSService.class); intentTTS.putExtra("spoken_txt", msgBody); context.startService(intentTTS); } 但是在循环语句中服务器只执行一次。这是哪的问题?如何避免?

运行谷歌文本上给出的php脚本到语音api文档页面会出现错误“无法创建资源”

<div class="post-text" itemprop="text"> <p>I am running the php code provided on the documentation page of text-to-api page. After running every 8-10 times successfuly. It gives me<code> Error creating resource: [message] fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known [file] /Desktop/php_projects/text_speech/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 323 [message] fopen(https://oauth2.googleapis.com/token): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known [file] /Desktop/php_projects/text_speech/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 323</code></p> <p>It gives me error where on this line</p> <pre class="lang-php prettyprint-override"><code> $response = $client-&gt;synthesizeSpeech($synthesisInputText, $voice, $audioConfig); </code></pre> <pre class="lang-php prettyprint-override"><code>require __DIR__ . '/vendor/autoload.php'; // Imports the Cloud Client Library use Google\Cloud\TextToSpeech\V1\AudioConfig; use Google\Cloud\TextToSpeech\V1\AudioEncoding; use Google\Cloud\TextToSpeech\V1\SsmlVoiceGender; use Google\Cloud\TextToSpeech\V1\SynthesisInput; use Google\Cloud\TextToSpeech\V1\TextToSpeechClient; use Google\Cloud\TextToSpeech\V1\VoiceSelectionParams; $client = new TextToSpeechClient([ 'credentials' =&gt; ('/Documents/gcp_credentials/config.json') ]); $synthesisInputText = (new SynthesisInput()) -&gt;setText('Hello, world! This is just for testing purpose.Lorem Ipsum is simply dummy text of the printing and typesetting industry.This is just for testing purpose.Lorem Ipsum is simply dummy text of the printing and typesetting industry'); $voice = (new VoiceSelectionParams()) -&gt;setLanguageCode('en-IN') -&gt;setName('en-IN-Wavenet-A') -&gt;setSsmlGender(SsmlVoiceGender::FEMALE); $effectsProfileId = "telephony-class-application"; $audioConfig = (new AudioConfig()) -&gt;setAudioEncoding(AudioEncoding::LINEAR16) -&gt;setEffectsProfileId(array($effectsProfileId)); $response = $client-&gt;synthesizeSpeech($synthesisInputText, $voice, $audioConfig); $audioContent = $response-&gt;getAudioContent(); file_put_contents('output.wav', $audioContent); </code></pre> <p>I want to output the result error free every time I run this code.</p> </div>

内部具有不同结构的类型结构切片

<div class="post-text" itemprop="text"> <p>I'm trying to create the following json below, but I'm not getting it:</p> <p><strong>json</strong></p> <pre><code>{ "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "foo1", "displayText": "foo2" } }, { "basicCard": { "formattedText": "foo3", "imageDisplayOptions": "CROPPED" } } ] } } </code></pre> <p>The problem is that I have a <code>[]struct</code> called<code>Items</code> (slice of structs) and it has 2 different structs <code>SimpleResponse</code> and<code>BasicCard</code> and I am not able to mount this json.</p> <p>The errors appear:</p> <blockquote> <p>can not use literal SimpleResponse</p> <p>can not use BasicCard literal</p> </blockquote> <p><strong>main.go</strong></p> <p><a href="https://play.golang.org/p/Gbl0UNWhqko" rel="nofollow noreferrer">https://play.golang.org/p/Gbl0UNWhqko</a></p> <pre><code>package main import ( "encoding/json" "fmt" "os" ) func main() { type SimpleResponse struct { TextToSpeech string `json:"textToSpeech"` DisplayText string `json:"displayText"` } type BasicCard struct { FormattedText string `json:"formattedText"` ImageDisplayOptions string `json:"imageDisplayOptions"` } type Items []struct { SimpleResponse SimpleResponse `json:"simpleResponse"` BasicCard BasicCard `json:"basicCard"` } type RichResponse struct{ Items Items `json:"items"` } group := RichResponse{ Items: Items{ SimpleResponse{"foo1", "foo2"}, BasicCard{ FormattedText: "foo3", ImageDisplayOptions: "CROPPED", }, }, } b, err := json.Marshal(group) if err != nil { fmt.Println("error:", err) } os.Stdout.Write(b) } </code></pre> <p>Could you help me mount this json?</p> </div>

如何在Dialogflow v2 WebhookResponse中发送FulfillmentMessages?

<div class="post-text" itemprop="text"> <p>I'm trying to send back fulfillment messages as part of Dialogflow's v2 API WebhookResponse.</p> <p><strong>This works:</strong></p> <p>Sending only a <code>FulfillmentText</code> as part of my response works fine (Testing the app in the Actions on Google Simulator replies with the proper <code>FulfillmentText</code> value) :</p> <pre><code>func random(c *gin.Context, wr dialogflow.WebhookRequest) { log.Println("Random action detected") fullfillment := dialogflow.WebhookResponse{ FulfillmentText: "foobar", } c.JSON(http.StatusOK, fullfillment) } </code></pre> <p>The JSON being sent back:</p> <pre><code>{"fulfillment_text":"foobar"} </code></pre> <p>The response in the Simulator:</p> <pre><code>{ "conversationToken": "[]", "finalResponse": { "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": "foobar" } } ] } }, "responseMetadata": { "status": { "message": "Success (200)" }, "queryMatchInfo": { "queryMatched": true, "intent": "24db2044-f2fb-4607-9897-1de757990622" } } } </code></pre> <p><strong>This doesn't:</strong></p> <p>But as soon as I try to send back any actual messages (Text Message, Basic Card, Simple Response, etc.) as part of <code>FulfillmentMessages</code>, the test fails:</p> <pre><code>func random(c *gin.Context, wr dialogflow.WebhookRequest) { log.Println("Random action detected") textMessage := dialogflow.Intent_Message_Text{ Text: []string{"foo", "bar"}, } fullfillment := dialogflow.WebhookResponse{ FulfillmentText: "foobar", FulfillmentMessages: []*dialogflow.Intent_Message{ { Message: &amp;dialogflow.Intent_Message_Text_{ Text: &amp;textMessage, }, }, }, } c.JSON(http.StatusOK, fullfillment) } </code></pre> <p>The JSON being sent back:</p> <pre><code>{ "fulfillment_text":"foobar", "fulfillment_messages":[ { "Message":{ "Text":{ "text":[ "foo", "bar" ] } } } ] } </code></pre> <p>The response in the Simulator:</p> <pre><code>{ "responseMetadata": { "status": { "code": 10, "message": "Failed to parse Dialogflow response into AppResponse because of empty speech response", "details": [ { "@type": "type.googleapis.com/google.protobuf.Value", "value": "{\"id\":\"917d8ac3-3f0f-4953-b556-4dec27b8bbb8\",\"timestamp\":\"2018-10-22T09:00:45.488Z\",\"lang\":\"en-us\",\"result\":{},\"alternateResult\":{},\"status\":{\"code\":206,\"errorType\":\"partial_content\",\"errorDetails\":\"Webhook call failed. Error: Failed to parse webhook JSON response: Cannot find field: Message in message google.cloud.dialogflow.v2.Intent.Message.\"},\"sessionId\":\"ABwppHHSbrqOCPRp_DAPDLepL6YjSNpbzQ61CIBDTMl99rtRqfaWq-y0HtExb1--k6bcaL4CACQMeiVF3p-x5qk\"}" } ] } } } </code></pre> <p>I am assuming that the JSON that my web service sends back is wrong, since it returns <code>... Cannot find field: Message ...</code> as part of its response. I am using the proper Golang SDK for Dialogflow though (<a href="https://godoc.org/google.golang.org/genproto/googleapis/cloud/dialogflow/v2#WebhookResponse" rel="nofollow noreferrer">https://godoc.org/google.golang.org/genproto/googleapis/cloud/dialogflow/v2#WebhookResponse</a>)</p> <p>This was tested on Actions on Google's Simulator as well as running the actual Google Assistant on a Pixel 2.</p> <p>Can anybody point me in the right direction what I am doing wrong?</p> </div>

具有许多嵌套的结构填充错误

<div class="post-text" itemprop="text"> <p>I am not understanding where the error is, since after completing the struct, it appears to me <code>undefined: Payload</code></p> <p>This is a very annoying struct because it has enough nesting of structs and slices of structs</p> <p>Could you help me solve this problem, because I can not solve it?</p> <p><a href="https://play.golang.org/p/QewpCfTWY0l" rel="nofollow noreferrer">https://play.golang.org/p/QewpCfTWY0l</a></p> <pre><code>package main import ( "fmt" ) type DialogFlowResponseSuggestion struct { Payload struct { Google struct { ExpectUserResponse bool `json:"expectUserResponse"` RichResponse struct { Items []struct { SimpleResponse struct { TextToSpeech string `json:"textToSpeech"` } `json:"simpleResponse"` } `json:"items"` Suggestions []struct { Title string `json:"title"` } `json:"suggestions"` } `json:"richResponse"` } `json:"google"` } `json:"payload"` } func main() { in := DialogFlowResponseSuggestion{ Payload: Payload{ Google: Google{ ExpectUserResponse: true, RichResponse: RichResponse{ Items: []Items{ Items{SimpleResponse: SimpleResponse{dialog.MReturn.Message}}, }, Suggestions: []Suggestions{ Suggestions{Title: "Suggestion Chips"}, Suggestions{Title: "suggestion 1"}, Suggestions{Title: "suggestion 2"}, }, }, }, }, } fmt.Println(in) } </code></pre> </div>

设置android tts voice

如何设置tts voice ,例如: // 创建TTS对象 mSpeech = new TextToSpeech(MainActivity.this, new TTSListener());

关于python Challenge level 4

大家好,看到PythonChallenge level 4之后,(问题是,将上一网页中的信息中的一部分作为新的网页的连接的一部分,一直进行下去寻找线索) 想通过递归来找找思路,但是遇到了一些问题。 代码还不完善,只是测试到第二个code后面就出现一直重复的情况,请问这是怎么回事呢? 下面是我的代码, ``` import urllib.request import re url = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345' #作为最初的url def visit(url): Request = urllib.request.urlopen(url) html = Request.read().decode('utf-8') Request.close() Purl = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=' #把url看作为前面一部分不变的字符串加上后面的数字组成的字符串 code = str(re.findall(r'(\d+$){1}',html)) #匹配最后的数字作为code和Purl组成新的url print('%s'%code) #测试获得的code url = Purl+code visit(url) #将新的url带入函数继续 return None visit(url) ```

too long

<div class="post-text" itemprop="text"> <p>Using php, how can I fetch specific data from dialogflow fulfillment JSON request and store the data into a php variable?</p> <p>Here is the JSON response I 'm getting from my dialogflow agent</p> <pre><code>{ "responseId": "e9106589-2a41-47c4-bdde-8f3cee8f40da", "queryResult": { "queryText": "switch on cfl", "action": "input.switchoncfl", "parameters": { "makeRequest": "cfl_on" }, "allRequiredParamsPresent": true, "fulfillmentMessages": [ { "platform": "ACTIONS_ON_GOOGLE", "simpleResponses": { "simpleResponses": [ { "textToSpeech": "Sure. Turning CFL on... Anything else can I help you with?", "displayText": "Sure. Turning CFL on..." } ] } } ], "intent": { "name": "projects/smarthome-cf277/agent/intents/5be27f38-105d-4854-b62d-ec3a6de80cc7", "displayName": "1.1-Switch_on_CFL" }, "intentDetectionConfidence": 1, "languageCode": "en" }, "originalDetectIntentRequest": { "payload": {} }, "session": "projects/smarthome-cf277/agent/sessions/ca0261aa-913f-96f1-b5aa-7755637d5ab7" } </code></pre> <p>And here is my php code</p> <pre><code>&lt;?php header("Content-Type: application/json"); ob_start(); $content = json_decode(file_get_contents('php://input'),true); $action = $content['parameters']['makeRequest']; ob_end_clean(); ?&gt; </code></pre> <p>I want to store <strong>cfl_on</strong> value to <strong>$action</strong> variable. How can I do that? this php code does not work.</p> </div>

Google Cloud TTS引擎忽略大块文本上的中断SSML标记

<div class="post-text" itemprop="text"> <p>I'm trying to generate audio from a big paragraph, but Google is ignoring the SSML tags.</p> <p>The tags are respected if I trim the text to around three lines, but more than that makes them invisible.</p> <pre class="lang-php prettyprint-override"><code>$body = [ 'input' =&gt; [ 'ssml' =&gt; '&lt;speak&gt;&lt;p&gt;Client Acquisition Engine Funnel For Creative Professionals&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;Most creative professionals I know are great at what they do, they have happy customers and deliver a high standard of work. Most however aren\'t very adept at acquiring new clients and have fallen into the habit of relying too much on referrals.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;I\'ll be honest here, I used to do that as well.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;For a long time, I just thought: "Well, if keep turning out good work I\'ll keep getting referrals"?&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;Turns out, that\'s not the case at all. Relying on referrals is a highly risky \'strategy\' and is not recommended (I wrote about it here).&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;Deep down somewhere in your conscious you already know this and so every now and then you throw some money into Facebook &amp; Google Ads and after burning through a fair amount cash and bearing little fruit, decide its not for you and carry on.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;Also, relying on the 20% of your clients who bring in 80% of your revenue (those 1 or 2 hero long term clients who\'ve helped sustain your freelance business for years) is also a highly risky situation to be in. You wake in the middle of the night, every now and then, in a cold sweat.. they\'ve left you!&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;Phew! It was only a dream...&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;I was exactly like that, but then I started to develop and systemise my sales &amp; marketing processes. So that would be able to build a predictable lead flow, attracting more ideal prospects, delivering value, pre-qualifying leads, inviting those with highest engagement to book time on my calendar, all the while automating 80% of that process.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;The key is to understand your own sales process, breaking each of the stages down into steps and look to automating as much of the repetitive tasks as you can. Doing so will result in being able to attract and manage more leads, filter out the ideal customers, which in turn gives you me more time, money and freedom.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;Sounds complicated, and if you don\'t have a clear pathway, it can quickly end up turning into a rabbit hole.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;p&gt;But you can stop faffing about and get on the right track by downloading the Client Acquisition Engine Funnel Map &amp; Toolkit today.&lt;/p&gt;&lt;break time="3000ms"/&gt;&lt;/speak&gt;', ], 'voice' =&gt; ['language_code' =&gt; 'en-US', 'name' =&gt; 'en-US-Wavenet-D'], 'audioConfig' =&gt; ['audio_encoding' =&gt; 'MP3'], ]; $result = json_decode($client-&gt;post('https://texttospeech.googleapis.com/v1beta1/text:synthesize?key=[REDACTED]', $body)-&gt;getBody()); file_put_contents('test.mp3', base64_decode($result['audioContent'])); </code></pre> <p>The request goes through successfully, but the break tags are missing. This is not only reproducible via code, but also on their public playground on the service website.</p> </div>

使用JSON将字符串从Android发送到PHP

<div class="post-text" itemprop="text"> <p>In my exercise i have to send a String from my App Android to a .PHP file located in localhost. In this .PHP file there is the answer that Server re-send to my APP in form of JSON.</p> <p>This is the .PHP file:</p> <pre><code>&lt;?php include_once '../database/ConnessioneDb.php'; include_once 'SchedaRepertoInterface.php'; $schedaInterface = new SchedaRepertoInterface(); $schedaReperto = $schedaInterface-&gt;readById($_POST['idScheda']); //oppure id_scheda if($schedaReperto-&gt;getPubblica()==1){ $titolo=$schedaReperto-&gt;getNome(); $descriziones=$schedaReperto-&gt;getDescrizioneShort(); $descrizionee=$schedaReperto-&gt;getDescrizioneEstesa(); $a = array($titolo, $descriziones, $descrizionee); print(json_encode($a)); echo '{ \"titolo\" : \"$titolo\" , \"descriziones\" : \"$descriziones\" , \"descrizionee\" : \"$descrizionee\"}'; else{ $titolo='Spiacente Scheda Reperto non Pubblica'; print(json_encode($titolo)); } </code></pre> <p>?&gt;</p> <p>This is the Activity:</p> <pre><code>public class SchedeActivity extends Activity implements TextToSpeech.OnInitListener { private String url = "http://192.168.1.5/wordpress/wp-content/plugins/wp-schedeReperto/interaction.php"; private String idSchedaReceived; TextView titoloView; TextView descrizionesView; TextView descrizioneeView; private TextView myAwesomeTextView; private TextToSpeech tts; private FloatingActionButton btnSpeak; boolean riproduzione_in_corso = false; /** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_schede); tts = new TextToSpeech(this, this); btnSpeak = (FloatingActionButton) findViewById(R.id.fab); Intent intent = getIntent(); idSchedaReceived = intent.getExtras().getString("idScheda"); riproduzione_in_corso = false; titoloView = (TextView) findViewById(R.id.titolo); descrizionesView = (TextView) findViewById(R.id.descShort); descrizioneeView = (TextView) findViewById(R.id.descExt); HttpGetTask task = new HttpGetTask(); task.execute(); myAwesomeTextView = (TextView)findViewById(R.id.myAwesomeTextView); myAwesomeTextView.setVisibility(TextView.INVISIBLE); FloatingActionButton fab = btnSpeak; fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(final View view) { if(riproduzione_in_corso==false) { final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(SchedeActivity.this); alertDialogBuilder.setMessage("Attivare riproduzione Audio?"); alertDialogBuilder.setPositiveButton("YES", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { myAwesomeTextView.setText(titoloView.getText().toString() + descrizionesView.getText().toString() + descrizioneeView.getText().toString()); //speakOut(); riproduzione_in_corso = true; } }) .setNegativeButton("NO", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { riproduzione_in_corso = false; } }); alertDialogBuilder.create(); alertDialogBuilder.show(); } else { final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(SchedeActivity.this); alertDialogBuilder.setMessage("Disattivare Audio?"); alertDialogBuilder.setPositiveButton("YES", new DialogInterface.OnClickListener(){ public void onClick(DialogInterface dialog, int id) { tts.stop(); riproduzione_in_corso = false; } }) .setNegativeButton("NO", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { riproduzione_in_corso = true; } }); alertDialogBuilder.create(); alertDialogBuilder.show(); } } }); } private class HttpGetTask extends AsyncTask&lt;String, String, String&gt; { @Override protected String doInBackground(String... params) { String result = ""; String stringaFinale = ""; ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(); nameValuePairs.add(new BasicNameValuePair("idScheda", idSchedaReceived)); InputStream is = null; //http post try{ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://192.168.1.5:80/wordpress/wp-content/plugins/wp-schedeReperto/interaction.php"); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); is = entity.getContent(); }catch(Exception e){ Log.e("TEST", "Errore nella connessione http "+e.toString()); } if (is != null) { //converto la risposta in stringa try { BufferedReader reader = new BufferedReader(new InputStreamReader(is, "iso-8859-1"), 8); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line + " "); } is.close(); result = sb.toString(); } catch (Exception e) { Log.e("TEST", "Errore nel convertire il risultato " + e.toString()); } //parsing dei dati arrivati in formato json try{ JSONArray jArray = new JSONArray(result); for(int i=0;i&lt;jArray.length();i++){ JSONObject json_data = jArray.getJSONObject(i); stringaFinale = json_data.getString("titolo") + " " + json_data.getString("descriziones") + " " + json_data.getString("descrizionee") + " "; } } catch(JSONException e){ Log.e("log_tag", "Error parsing data "+e.toString()); } }else{} return stringaFinale; } @Override protected void onProgressUpdate(String... values) { } @Override protected void onPostExecute(String result) { myAwesomeTextView.setText(result); } } </code></pre> <p>}</p> <p>And finally the Log:</p> <pre><code>E/log_tag: Error parsing data org.json.JSONException: End of input at character 0 of </code></pre> <p>What is my problem? Is it on my .PHP file or in Android?</p> </div>

com.jacob包 在Windows10开发环境运行正常,在Windows server 2008 抛出异常

com.jacob.com.ComFailException: Invoke of: AudioOutputStream Source: Description: at com.jacob.com.Dispatch.invokev(Native Method) at com.jacob.com.Dispatch.invokev(Dispatch.java:625) at com.jacob.com.Dispatch.invoke(Dispatch.java:498) at com.jacob.com.Dispatch.putRef(Dispatch.java:819) at net.bjnblh.dc.textToSpeech.service.MSTTSSpeech.saveToWav(MSTTSSpeech.java:274) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl.makeWavAndReturnUrl(NoteReadingServiceImpl.java:70) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl.docToHtml(NoteReadingServiceImpl.java:53) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl$$FastClassBySpringCGLIB$$9c509776.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.alibaba.druid.support.spring.stat.DruidStatInterceptor.invoke(DruidStatInterceptor.java:72) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl$$EnhancerBySpringCGLIB$$62d6289f.docToHtml(<generated>) at net.bjnblh.dc.textToSpeech.controller.noteReadingController.getHtmlByWord(noteReadingController.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at net.bjnblh.dc.core.filter.CrossFilter.doFilter(CrossFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1533) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1489) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) ``` public void saveToWav(String text, String filePath) { // 创建输出文件流对象 ax=new ActiveXComponent("Sapi.SpFileStream"); spFileStream=ax.getObject(); // 创建音频流格式对象 if(spAudioFormat==null) { ax=new ActiveXComponent("Sapi.SpAudioFormat"); spAudioFormat=ax.getObject(); } // 设置音频流格式类型 Dispatch.put(spAudioFormat,"Type",new Variant(this.formatType)); // 设置文件输出流的格式 Dispatch.putRef(spFileStream,"Format",spAudioFormat); // 调用输出文件流对象的打开方法,创建一个.wav文件 Dispatch.call(spFileStream,"Open",new Variant(filePath),new Variant(3),new Variant(true)); // 设置声音对象的音频输出流为输出文件流对象 Dispatch.putRef(spVoice,"AudioOutputStream",spFileStream); // 调整音量和读的速度 Dispatch.put(spVoice,"Volume",new Variant(this.volume));// 设置音量 Dispatch.put(spVoice,"Rate",new Variant(this.rate));// 设置速率 // 开始朗读 Dispatch.call(spVoice,"Speak",new Variant(text)); /* 分一句话去读 Long initTime =System.currentTimeMillis(); for (Element element:elements) { String text =element.childNode(0).toString(); String[] strings= text.split("\\p{P}"); String newNodeHtml =""; for (int n=0 ; n<strings.length;n++) { String start=String.valueOf(System.currentTimeMillis() - initTime); System.out.println(start); Dispatch.call(spVoice,"Speak",new Variant(strings[n])); newNodeHtml += "<span id=" +start+ ">" + strings[n] +"</span>"; } listValue.add(newNodeHtml); }*/ // 关闭输出文件流对象,释放资源 Dispatch.call(spFileStream,"Close"); Dispatch.putRef(spVoice,"AudioOutputStream",null);//此处异常 } ```

Android:调整 SounPool 和TTS

我在 Activity 中定义了下面的方法: private void playSound(final boolean ttsOn) { // TODO Auto-generated method stub int water = 0; SoundPool pl; pl = new SoundPool(5, AudioManager.STREAM_MUSIC, 0); water = pl.load(this, R.raw.water_boiling, 0); pl.setOnLoadCompleteListener(new OnLoadCompleteListener() { @Override public void onLoadComplete(SoundPool soundPool, int sampleId, int status) { // TODO Auto-generated method stub soundPool.play(sampleId, 1f, 1f, 0, 0, 1); if(ttsOn) speakOut(); } }); 在speakOut()里是这样的: private void speakOut() { tts.setLanguage(Locale.ITALIAN); tts.speak(n.Message, TextToSpeech.QUEUE_FLUSH, null); } 但是这是复制 mp3 文件的,同时 tts也发声,那么如何在 mp3后复制tts呢?

关于basicCard响应格式化文本的转义语句未解析

<div class="post-text" itemprop="text"> <p>I have a php script on my website and this action is linked as a webhook to it. So once the data is submitted to the server, this is the response I send in json.</p> <pre><code>`{"payload": {"google": {"expectUserResponse":true," richResponse": {"items":[{ "simpleResponse":{ "textToSpeech":"This feature is coming soon! Please wait until you receive a notification about its launch! You can verify if the details collected for your entry were right and inform the creator if they weren't. Here are the details." } },{"basicCard":{"title":"This is the entry I made","subtitle":"But I couldn't submit it","formattedText":"Item: Books \ Remarks: McDonalds \ Date: 2019-02-17T12:00:00+05:30 \ Amount: 2098 \ Category: Expense \ If the details above aren't right, please inform the creator."}}]}}}}' </code></pre> <p>But none of the get parsed. What I actually entered in php was a double space followed by single backslash and then n but for some reason php adds an extra backslash preventing it from escaping even when I used json encode json_unescaped_slashes. Here is the php code I used to create the json.</p> <pre><code> $response=new \stdClass(); $response-&gt;payload-&gt;google-&gt;expectUserResponse= true; $items=new \stdClass(); $res-&gt;simpleResponse-&gt;textToSpeech="This feature is coming soon! Please wait until you receive a notification about its launch! You can verify if the details collected for your entry were right and inform the creator if they weren't. Here are the details."; $items-&gt;basicCard-&gt;title="This is the entry I made"; $items-&gt;basicCard-&gt;subtitle="But I couldn't submit it"; $items-&gt;basicCard-&gt;formattedText="Item: ".$type." Remarks: ".$item." Date: ".$date." Amount: ".$amount." Category: ".$category." If the details above aren't right, please inform the creator."; $response-&gt;payload-&gt;google-&gt;richResponse-&gt;items[]=json_encode($res, JSON_UNESCAPED_SLASHES).",".json_encode($items, JSON_UNESCAPED_SLASHES); $response2=str_replace('\"','"',json_encode($response, JSON_UNESCAPED_SLASHES)); $response2=str_replace('"{','{',$response2); $response2=str_replace('}"','}',$response2); echo $response2; </code></pre> <p>And this is the link to the screenshot of how it appears in the basicCard response <a href="https://photos.app.goo.gl/RzG5H3VgTJfrgfB59" rel="nofollow noreferrer">https://photos.app.goo.gl/RzG5H3VgTJfrgfB59</a></p> </div>

谷歌游戏应用堆栈跟踪

在谷歌游戏开发者控制台,经常会出现一些崩溃报告,完全搞不懂什么意思。在我的应用中就没有这样的报告。请好心人给解释一下: java.lang.NullPointerException at android.os.Parcel.readException(Parcel.java:1338) at android.os.Parcel.readException(Parcel.java:1286) at android.speech.tts.ITextToSpeechService$Stub$Proxy.setCallback(ITextToSpeechService.java:573) at android.speech.tts.TextToSpeech$Connection.onServiceConnected(TextToSpeech.java:1278) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1125) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1142) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:4945) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) 我已经初始化过TTS,我的应用读取文本声音,不知道应该怎么解决这些错误?

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

再不跳槽,应届毕业生拿的都比我多了!

跳槽几乎是每个人职业生涯的一部分,很多HR说“三年两跳”已经是一个跳槽频繁与否的阈值了,可为什么市面上有很多程序员不到一年就跳槽呢?他们不担心影响履历吗? PayScale之前发布的**《员工最短任期公司排行榜》中,两家码农大厂Amazon和Google**,以1年和1.1年的员工任期中位数分列第二、第四名。 PayScale:员工最短任期公司排行榜 意外的是,任期中位数极小的这两家公司,薪资...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

数据库——玩转SQL语句(以MySQL为例)

一、前言 照着大学的SQL server来学

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

01、Java入门(Getting Started);02、集成开发环境(IDE);03、项目结构(Eclipse JavaProject);04、类和对象(Classes and Objects);05:词法结构(Lexical Structure);06:数据类型和变量(Data Type and Variables);07:运算符(Operators);08:控制流程语句(Control Flow Statements);

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

立即提问
相关内容推荐