{"id":191422,"date":"2013-08-26T20:37:02","date_gmt":"2013-08-26T16:37:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=191422"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=191422","title":{"rendered":"<span class=\"post_title\">\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430 \u0432 Java<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430 \u0432 Java<\/h4>\n<p>  <\/p>\n<h5>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u0442\u0435\u043c\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442. Java-tutorials \u0442\u043e\u0436\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0436\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435\u0433\u043e. \u0410 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 javax.sound.sampled \u0445\u043e\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u0430, \u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430 (\u044f \u0431\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043f\u0438\u0441\u0430\u043b\u0438 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0446\u044b). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0432\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u0432\u044f\u0442\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430<\/h5>\n<p>  \u0422\u0443\u0442 \u0432\u0441\u0451 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c javax.sound.sampled \u0438 \u043f\u043e\u0435\u0445\u0430\u043b\u0438:  <\/p>\n<pre><code class=\"java\">try { \tFile soundFile = new File(&quot;snd.wav&quot;); \/\/\u0417\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \t \t\/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c AudioInputStream \t\/\/\u0412\u043e\u0442 \u0442\u0443\u0442 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u0435\u0442\u0435\u0442\u044c IOException \u0438 UnsupportedAudioFileException \tAudioInputStream ais = AudioSystem.getAudioInputStream(soundFile); \t \t\/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 Clip \t\/\/\u041c\u043e\u0436\u0435\u0442 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c LineUnavailableException \tClip clip = AudioSystem.getClip(); \t \t\/\/\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0430\u0448 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u0432 Clip \t\/\/\u041c\u043e\u0436\u0435\u0442 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c IOException \u0438 LineUnavailableException \tclip.open(ais); \t \tclip.setFramePosition(0); \/\/\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0430\u0440\u0442 \tclip.start(); \/\/\u041f\u043e\u0435\u0445\u0430\u043b\u0438!!!  \t\/\/\u0415\u0441\u043b\u0438 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u043a\u043b\u0438\u043f \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f         \/\/\u0412 GUI-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 3 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \tThread.sleep(clip.getMicrosecondLength()\/1000); \tclip.stop(); \/\/\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \tclip.close(); \/\/\u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c } catch(IOException | UnsupportedAudioFileException | LineUnavailableException exc) { \texc.printStackTrace(); } catch (InterruptedException exc) {} <\/code><\/pre>\n<h6>\u0420\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438<\/h6>\n<p>  \u041f\u043e\u0438\u0433\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441\u043e \u0437\u0432\u0443\u043a\u0430\u043c\u0438 \u0432\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0437\u0432\u0443\u043a\u0430. Java Sound API \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441 \u0444\u0438\u0440\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u0432\u043e\u0442\u043e\u0439.  <\/p>\n<pre><code class=\"java\">\/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 FloatControl vc = (FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN); \/\/\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \/\/\u041e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0442 vc.getMinimum() \u0434\u043e vc.getMaximum() vc.setValue(5); \/\/\u0413\u0440\u043e\u043c\u0447\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u043c\u0438 <b>clip.open(ais)<\/b> \u0438 <b>clip.setFramePosition(0)<\/b>.<\/p>\n<h5>\u0423\u043f\u0440\u043e\u0449\u0430\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/h5>\n<p>  \u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0447\u0442\u043e\u0431\u044b \u0432\u044b \u043d\u0435 \u043c\u0443\u0447\u0438\u043b\u0438\u0441\u044c, \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u043e\u0432  <\/p>\n<pre><code class=\"java\">import java.io.File; import java.io.IOException;  import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled.FloatControl; import javax.sound.sampled.LineEvent; import javax.sound.sampled.LineListener; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.UnsupportedAudioFileException;  public class Sound { \tprivate boolean released = false; \tprivate Clip clip = null; \tprivate FloatControl volumeC = null; \tprivate boolean playing = false; \t \tpublic Sound(File f) { \t\ttry { \t\t\tAudioInputStream stream = AudioSystem.getAudioInputStream(f); \t\t\tclip = AudioSystem.getClip(); \t\t\tclip.open(stream); \t\t\tclip.addLineListener(new Listener()); \t\t\tvolumeC = (FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN); \t\t\treleased = true; \t\t} catch(IOException | UnsupportedAudioFileException | LineUnavailableException exc) { \t\t\texc.printStackTrace(); \t\t\treleased = false; \t\t} \t}  \t\/\/true \u0435\u0441\u043b\u0438 \u0437\u0432\u0443\u043a \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d, false \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \tpublic boolean isReleased() { \t\treturn released; \t} \t \t\/\/\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0437\u0432\u0443\u043a \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \tpublic boolean isPlaying() { \t\treturn playing; \t}  \t\/\/\u0417\u0430\u043f\u0443\u0441\u043a \t\/* \t  breakOld \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0437\u0432\u0443\u043a \u0443\u0436\u0435 \u0438\u0433\u0440\u0430\u0435\u0442\u0441\u044f \t  \u0415\u0441\u043b\u0438 reakOld==true, \u043e \u0437\u0432\u0443\u043a \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0440\u0432\u0430\u043d \u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0437\u0430\u043d\u043e\u0432\u043e \t  \u0418\u043d\u0430\u0447\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \t*\/ \tpublic void play(boolean breakOld) { \t\tif (released) { \t\t\tif (breakOld) { \t\t\t\tclip.stop(); \t\t\t\tclip.setFramePosition(0); \t\t\t\tclip.start(); \t\t\t\tplaying = true; \t\t\t} else if (!isPlaying()) { \t\t\t\tclip.setFramePosition(0); \t\t\t\tclip.start(); \t\t\t\tplaying = true; \t\t\t} \t\t} \t} \t \t\/\/\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 play(true) \tpublic void play() { \t\tplay(true); \t} \t \t\/\/\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \tpublic void stop() { \t\tif (playing) { \t\t\tclip.stop(); \t\t} \t}  \t\/\/\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \t\/* \t  x \u0434\u043e\u043b\u0436\u0435 \u0431\u044b\u0442\u044c \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0442 0 \u0434\u043e 1 (\u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0438\u0445\u043e\u0433\u043e \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0433\u0440\u043e\u043c\u043a\u043e\u043c\u0443) \t*\/ \tpublic void setVolume(float x) { \t\tif (x&lt;0) x = 0; \t\tif (x&gt;1) x = 1; \t\tfloat min = volumeC.getMinimum(); \t\tfloat max = volumeC.getMaximum(); \t\tvolumeC.setValue((max-min)*x+min); \t} \t \t\/\/\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c (\u0447\u0438\u0441\u043b\u043e \u043e\u0442 0 \u0434\u043e 1) \tpublic float getVolume() { \t\tfloat v = volumeC.getValue(); \t\tfloat min = volumeC.getMinimum(); \t\tfloat max = volumeC.getMaximum(); \t\treturn (v-min)\/(max-min); \t}  \t\/\/\u0414\u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u0430 \tpublic void join() { \t\tif (!released) return; \t\tsynchronized(clip) { \t\t\ttry { \t\t\t\twhile (playing) clip.wait(); \t\t\t} catch (InterruptedException exc) {} \t\t} \t} \t \t\/\/\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \tpublic static Sound playSound(String s) { \t\tFile f = new File(s); \t\tSound snd = new Sound(f); \t\tsnd.play(); \t\treturn snd; \t}  \tprivate class Listener implements LineListener { \t\tpublic void update(LineEvent ev) { \t\t\tif (ev.getType() == LineEvent.Type.STOP) { \t\t\t\tplaying = false; \t\t\t\tsynchronized(clip) { \t\t\t\t\tclip.notify(); \t\t\t\t} \t\t\t} \t\t} \t} } <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<pre><code class=\"java\">Sound.playSound(&quot;sounds\/hello.wav&quot;).join(); <\/code><\/pre>\n<h5>\u0424\u043e\u0440\u043c\u0430\u0442\u044b<\/h5>\n<p>  \u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432: \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e mp3 \u0438 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u0435 wav. \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f au \u0438 aif. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/191422\/\"> http:\/\/habrahabr.ru\/post\/191422\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430 \u0432 Java<\/h4>\n<p>  <\/p>\n<h5>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u0442\u0435\u043c\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0442. Java-tutorials \u0442\u043e\u0436\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0436\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435\u0433\u043e. \u0410 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 javax.sound.sampled \u0445\u043e\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u0430, \u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430 (\u044f \u0431\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043f\u0438\u0441\u0430\u043b\u0438 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0446\u044b). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0432\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u0432\u044f\u0442\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-191422","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/191422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191422"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/191422\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}